Changeset 19192 in josm


Ignore:
Timestamp:
2024-08-12T21:35:07+02:00 (2 months ago)
Author:
taylor.smock
Message:

Fix #23841: Bing: Automatically reload all tiles with Error: Attribution is not loaded yet after successfully loading the attribution

Location:
trunk/src/org/openstreetmap/josm/gui/layer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java

    r19122 r19192  
    966966    }
    967967
     968    /**
     969     * Remove all cached error tiles
     970     * @since 19192
     971     */
     972    public void clearErrorTiles() {
     973        tileCache.clearErrorTiles();
     974        invalidate();
     975    }
     976
    968977    @Override
    969978    public boolean imageUpdate(Image img, int infoflags, int x, int y, int width, int height) {
  • trunk/src/org/openstreetmap/josm/gui/layer/TMSLayer.java

    r16553 r19192  
    7676    protected TMSTileSource getTileSource() {
    7777        return getTileSourceStatic(info, () -> {
    78             Logging.debug("Attribution loaded, running loadAllErrorTiles");
    79             this.loadAllErrorTiles(false);
     78            Logging.debug("Attribution loaded, running clearErrorTiles");
     79            this.clearErrorTiles();
    8080        });
    8181    }
Note: See TracChangeset for help on using the changeset viewer.