Ignore:
Timestamp:
2015-07-14T21:58:01+02:00 (11 years ago)
Author:
wiktorn
Message:

Properly handle file based tile sources.

  • move getThreadFactory(String name) to Utils class, so it's easily usable across JOSM
  • rollback changes in [8485]
  • detect that we are working with filesystem TileSource in AbstractTileSourceLayer and if so, do not use JCS as caching mechanism, as tiles are already local
  • change return value of getTileSourceInfo in AbstractTileSourceLayer to AbstractTMSTileSource, as this is anyway - lowest we can work with
  • add test data for testing file base tile sources

closes: #11548

File:
1 edited

Legend:

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

    r8598 r8602  
    88import org.openstreetmap.gui.jmapviewer.interfaces.ICoordinate;
    99import org.openstreetmap.gui.jmapviewer.interfaces.TileLoader;
    10 import org.openstreetmap.gui.jmapviewer.interfaces.TileSource;
     10import org.openstreetmap.gui.jmapviewer.tilesources.AbstractTMSTileSource;
    1111import org.openstreetmap.josm.Main;
    1212import org.openstreetmap.josm.data.cache.BufferedImageCacheEntry;
     
    4848
    4949    @Override
    50     protected TileSource getTileSource(ImageryInfo info) {
     50    protected AbstractTMSTileSource getTileSource(ImageryInfo info) {
    5151        try {
    5252            if (info.getImageryType() == ImageryType.WMTS && info.getUrl() != null) {
Note: See TracChangeset for help on using the changeset viewer.