Changeset 11956 in josm
- Timestamp:
- 2017-04-19T13:29:08+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/layer
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java
r11953 r11956 301 301 /** 302 302 * Clears the tile cache. 303 *304 * If the current tileLoader is an instance of OsmTileLoader, a new305 * TmsTileClearController is created and passed to the according clearCache method.306 303 */ 307 304 public void clearTileCache() { … … 310 307 } 311 308 tileCache.clear(); 312 }313 314 /**315 * Initiates a repaint of Main.map316 *317 * @see Main#map318 * @see MapFrame#repaint()319 * @see #invalidate() To trigger a repaint of all places where the layer is displayed.320 */321 public void redraw() {322 invalidate();323 309 } 324 310 -
trunk/src/org/openstreetmap/josm/gui/layer/WMSLayer.java
r11860 r11956 118 118 @Override 119 119 public void projectionChanged(Projection oldValue, Projection newValue) { 120 super.projectionChanged(oldValue, newValue); 120 121 Projection tileProjection = chooseProjection(newValue); 121 122 if (!Objects.equals(tileSource.getTileProjection(), tileProjection)) { -
trunk/src/org/openstreetmap/josm/gui/layer/imagery/FlushTileCacheAction.java
r11950 r11956 34 34 protected void realRun() { 35 35 layer.clearTileCache(); 36 layer.invalidate(); 36 37 } 37 38 -
trunk/src/org/openstreetmap/josm/gui/layer/imagery/ZoomToNativeLevelAction.java
r11950 r11956 32 32 double newFactor = Math.sqrt(layer.getScaleFactor(layer.currentZoomLevel)); 33 33 Main.map.mapView.zoomToFactor(newFactor); 34 layer. redraw();34 layer.invalidate(); 35 35 } 36 36 }
Note:
See TracChangeset
for help on using the changeset viewer.