Changeset 31468 in osm for applications/editors
- Timestamp:
- 2015-08-08T13:39:33+02:00 (9 years ago)
- Location:
- applications/editors/josm/plugins/imagerycache
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/imagerycache/build.xml
r31304 r31468 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 526"/>7 <property name="plugin.main.version" value="8648"/> 8 8 9 9 <!-- Configure these properties (replace "..." accordingly). -
applications/editors/josm/plugins/imagerycache/src/org/openstreetmap/josm/plugins/imagerycache/ImageryCachePlugin.java
r31304 r31468 20 20 TileLoaderFactory factory = new TileLoaderFactory() { 21 21 @Override 22 public OsmTileLoader makeTileLoader(TileLoaderListener listener ) {22 public OsmTileLoader makeTileLoader(TileLoaderListener listener, Map<String, String> headers) { 23 23 String cachePath = CachedTileLoaderFactory.PROP_TILECACHE_DIR.get(); 24 24 try { … … 29 29 30 30 if (cachePath != null && !cachePath.isEmpty()) { 31 return new OsmDBTilesLoader(listener, new File(cachePath) );31 return new OsmDBTilesLoader(listener, new File(cachePath), headers); 32 32 } 33 33 return null; … … 35 35 36 36 @Override 37 public TileLoader makeTileLoader(TileLoaderListener listener, 38 Map<String, String> headers) { 39 return makeTileLoader(listener); 37 public TileLoader makeTileLoader(TileLoaderListener listener) { 38 return makeTileLoader(listener, null); 40 39 } 41 40 }; -
applications/editors/josm/plugins/imagerycache/src/org/openstreetmap/josm/plugins/imagerycache/OsmDBTilesLoader.java
r31146 r31468 40 40 protected long recheckAfter = FILE_AGE_ONE_DAY; 41 41 42 public OsmDBTilesLoader(TileLoaderListener smap, File cacheFolder ) {43 super(smap );42 public OsmDBTilesLoader(TileLoaderListener smap, File cacheFolder, Map<String, String> headers) { 43 super(smap, headers); 44 44 dao = TileDAOMapDB.getInstance(); 45 45 dao.setCacheFolder(cacheFolder);
Note:
See TracChangeset
for help on using the changeset viewer.