Ignore:
Timestamp:
2015-07-12T23:55:18+02:00 (9 years ago)
Author:
wiktorn
Message:

TileSource:

  • added method - getTileId that returns unique identifier for the tile, that should not collide with other tile sources
  • added JavaDocs

JCSCacheManager:

  • moved from object count limit to object size limit
  • fixed bug with unnecessary re-creation of auxilary cache, that could result in cache corruption/loss of current cache data

CachedTileLoaderFactory, WMSCachedTileLoader, TMSCachedTileLoader

  • un-abstract CachedTileLoaderFactory, use reflection to create TileLoaders
  • adjust constructors

TMSCachedTileLoader, AbstractCachedTileSourceLayer:

  • move cache related settings to AbstractCachedTileSourceLayer
  • move cache instation to AbstractCachedTileSourceLayer
  • make "flush tile cache" command clear only one tile source

TMSCachedTileLoaderJob:

  • make "flush tile cache" command clear only one tile source
  • reorder methods

TemplatedWMSTileSource:

  • java docs
  • inline of private methods: getTileXMax, getTileYMax
  • fix sonar issues
  • make WMS layer zoom levels closer to TMS (addresses: #11459)

WMTSTileSource:

  • fix Sonar issues
  • use topLeftCorner in X/Y tile max calculations instead of world bounds (fixes issues with WMTS-es, for which topLeftCorner lies outside projection world bounds)

AbstractTileSourceLayer:

  • draw warning, when min-zoom-level is set, and tiles are not loaded due to too many tiles on screen

TMSLayer, WMSLayer, WMTSLayer:

  • expose access to cache object for ImageryPreferences

CacheContentsPanel:

  • add panel for managing cache regions and tile sources within the regions

CommonSettingsPanel, TMSSettingsPanel:

  • move settings common to all imagery layers from TMSSettingsPanel to CommonSettingsPanel
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java

    r8571 r8598  
    206206     */
    207207    public void clearTileCache(ProgressMonitor monitor) {
    208         tileCache.clear();
    209208        if (tileLoader instanceof CachedTileLoader) {
    210209            ((CachedTileLoader) tileLoader).clearCache(tileSource);
    211210        }
     211        // if we use TMSCachedTileLoader, we already cleared by tile source, this is needed
     212        // to prevent removal of additional objects
     213        if (!(tileLoader instanceof TMSCachedTileLoader)) {
     214            tileCache.clear();
     215        }
     216
    212217    }
    213218
     
    14091414            }
    14101415        }
     1416
     1417        if (zoom < getMinZoomLvl() && (ts.insane() || ts.tooLarge())) {
     1418            myDrawString(g, tr("zoom in to load any tiles"), 120, 120);
     1419        }
     1420
    14111421        if (noTilesAtZoom) {
    14121422            myDrawString(g, tr("No tiles at this zoom level"), 120, 120);
Note: See TracChangeset for help on using the changeset viewer.