Changeset 31304 in osm


Ignore:
Timestamp:
2015-06-24T21:54:14+02:00 (9 years ago)
Author:
wiktorn
Message:

Adapt to changes in JOSM 8526 - changes in interfaces of TMSLayer

Location:
applications/editors/josm/plugins/imagerycache
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/imagerycache/build.xml

    r31148 r31304  
    55    <property name="commit.message" value="[JOSM_ImageryCache]: correct database cleaning, at last"/>
    66    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    7     <property name="plugin.main.version" value="8425"/>
     7    <property name="plugin.main.version" value="8526"/>
    88
    99    <!-- Configure these properties (replace "..." accordingly).
  • applications/editors/josm/plugins/imagerycache/src/org/openstreetmap/josm/plugins/imagerycache/ImageryCachePlugin.java

    r31083 r31304  
    77import org.openstreetmap.gui.jmapviewer.interfaces.TileLoader;
    88import org.openstreetmap.gui.jmapviewer.interfaces.TileLoaderListener;
     9import org.openstreetmap.josm.data.imagery.CachedTileLoaderFactory;
     10import org.openstreetmap.josm.data.imagery.TileLoaderFactory;
    911import org.openstreetmap.josm.gui.layer.TMSLayer;
    1012import org.openstreetmap.josm.plugins.Plugin;
     
    1618public class ImageryCachePlugin extends Plugin {
    1719   
    18     TMSLayer.TileLoaderFactory factory = new TMSLayer.TileLoaderFactory() {
     20    TileLoaderFactory factory = new TileLoaderFactory() {
    1921        @Override
    2022        public OsmTileLoader makeTileLoader(TileLoaderListener listener) {
    21             String cachePath = TMSLayer.PROP_TILECACHE_DIR.get();
     23            String cachePath = CachedTileLoaderFactory.PROP_TILECACHE_DIR.get();
    2224            try {
    2325                new File(cachePath).mkdirs();
     
    4143    public ImageryCachePlugin(PluginInformation info) {
    4244        super(info);
    43         TMSLayer.setCustomTileLoaderFactory(factory);
     45        TMSLayer.setTileLoaderFactory(factory);
    4446    }
    4547   
Note: See TracChangeset for help on using the changeset viewer.