Changeset 18186 in josm
- Timestamp:
- 2021-08-31T18:21:51+02:00 (3 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/imagery/MVTLayer.java
r17867 r18186 24 24 import javax.swing.JMenuItem; 25 25 26 import org.apache.commons.jcs3.access.CacheAccess; 26 27 import org.openstreetmap.gui.jmapviewer.Tile; 27 28 import org.openstreetmap.gui.jmapviewer.interfaces.TileLoader; 28 29 import org.openstreetmap.josm.actions.ExpertToggleAction; 29 30 import org.openstreetmap.josm.data.Bounds; 31 import org.openstreetmap.josm.data.cache.BufferedImageCacheEntry; 30 32 import org.openstreetmap.josm.data.imagery.ImageryInfo; 31 33 import org.openstreetmap.josm.data.imagery.vectortile.mapbox.Layer; … … 88 90 } 89 91 92 /** 93 * Returns cache region for MVT layer. 94 * @return cache region for MVT layer 95 * @since 18186 96 */ 97 public static CacheAccess<String, BufferedImageCacheEntry> getCache() { 98 return AbstractCachedTileSourceLayer.getCache(CACHE_REGION_NAME); 99 } 100 90 101 @Override 91 102 public Collection<String> getNativeProjections() { -
trunk/src/org/openstreetmap/josm/gui/preferences/imagery/CacheSettingsPanel.java
r17830 r18186 40 40 import org.openstreetmap.josm.gui.layer.WMSLayer; 41 41 import org.openstreetmap.josm.gui.layer.WMTSLayer; 42 import org.openstreetmap.josm.gui.layer.imagery.MVTLayer; 42 43 import org.openstreetmap.josm.gui.util.GuiHelper; 43 44 import org.openstreetmap.josm.gui.util.TableHelper; … … 79 80 addToPanel(WMSLayer.getCache(), "WMS"); 80 81 addToPanel(WMTSLayer.getCache(), "WMTS"); 82 addToPanel(MVTLayer.getCache(), "MVT"); 81 83 }); 82 84 }
Note:
See TracChangeset
for help on using the changeset viewer.