Changeset 31304 in osm
- Timestamp:
- 2015-06-24T21:54:14+02:00 (9 years ago)
- Location:
- applications/editors/josm/plugins/imagerycache
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/imagerycache/build.xml
r31148 r31304 5 5 <property name="commit.message" value="[JOSM_ImageryCache]: correct database cleaning, at last"/> 6 6 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 7 <property name="plugin.main.version" value="8 425"/>7 <property name="plugin.main.version" value="8526"/> 8 8 9 9 <!-- Configure these properties (replace "..." accordingly). -
applications/editors/josm/plugins/imagerycache/src/org/openstreetmap/josm/plugins/imagerycache/ImageryCachePlugin.java
r31083 r31304 7 7 import org.openstreetmap.gui.jmapviewer.interfaces.TileLoader; 8 8 import org.openstreetmap.gui.jmapviewer.interfaces.TileLoaderListener; 9 import org.openstreetmap.josm.data.imagery.CachedTileLoaderFactory; 10 import org.openstreetmap.josm.data.imagery.TileLoaderFactory; 9 11 import org.openstreetmap.josm.gui.layer.TMSLayer; 10 12 import org.openstreetmap.josm.plugins.Plugin; … … 16 18 public class ImageryCachePlugin extends Plugin { 17 19 18 T MSLayer.TileLoaderFactory factory = new TMSLayer.TileLoaderFactory() {20 TileLoaderFactory factory = new TileLoaderFactory() { 19 21 @Override 20 22 public OsmTileLoader makeTileLoader(TileLoaderListener listener) { 21 String cachePath = TMSLayer.PROP_TILECACHE_DIR.get();23 String cachePath = CachedTileLoaderFactory.PROP_TILECACHE_DIR.get(); 22 24 try { 23 25 new File(cachePath).mkdirs(); … … 41 43 public ImageryCachePlugin(PluginInformation info) { 42 44 super(info); 43 TMSLayer.set CustomTileLoaderFactory(factory);45 TMSLayer.setTileLoaderFactory(factory); 44 46 } 45 47
Note:
See TracChangeset
for help on using the changeset viewer.