Changeset 11956 in josm


Ignore:
Timestamp:
2017-04-19T13:29:08+02:00 (5 months ago)
Author:
bastiK
Message:

see #7427 - repaint after clear tile cache action

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  
    301301    /**
    302302     * Clears the tile cache.
    303      *
    304      * If the current tileLoader is an instance of OsmTileLoader, a new
    305      * TmsTileClearController is created and passed to the according clearCache method.
    306303     */
    307304    public void clearTileCache() {
     
    310307        }
    311308        tileCache.clear();
    312     }
    313 
    314     /**
    315      * Initiates a repaint of Main.map
    316      *
    317      * @see Main#map
    318      * @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();
    323309    }
    324310
  • trunk/src/org/openstreetmap/josm/gui/layer/WMSLayer.java

    r11860 r11956  
    118118    @Override
    119119    public void projectionChanged(Projection oldValue, Projection newValue) {
     120        super.projectionChanged(oldValue, newValue);
    120121        Projection tileProjection = chooseProjection(newValue);
    121122        if (!Objects.equals(tileSource.getTileProjection(), tileProjection)) {
  • trunk/src/org/openstreetmap/josm/gui/layer/imagery/FlushTileCacheAction.java

    r11950 r11956  
    3434            protected void realRun() {
    3535                layer.clearTileCache();
     36                layer.invalidate();
    3637            }
    3738
  • trunk/src/org/openstreetmap/josm/gui/layer/imagery/ZoomToNativeLevelAction.java

    r11950 r11956  
    3232        double newFactor = Math.sqrt(layer.getScaleFactor(layer.currentZoomLevel));
    3333        Main.map.mapView.zoomToFactor(newFactor);
    34         layer.redraw();
     34        layer.invalidate();
    3535    }
    3636}
Note: See TracChangeset for help on using the changeset viewer.