Changeset 17492 in josm for trunk


Ignore:
Timestamp:
2021-02-17T08:53:53+01:00 (4 years ago)
Author:
GerdP
Message:

see #20014: see #20014: Tiles constantly reloading

  • implement named constant MAX_TILES_SPANNED with value 40 instead of 20
File:
1 edited

Legend:

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

    r17402 r17492  
    145145implements ImageObserver, TileLoaderListener, ZoomChangeListener, FilterChangeListener, DisplaySettingsChangeListener {
    146146    private static final String PREFERENCE_PREFIX = "imagery.generic";
     147    private static final int MAX_TILES_SPANNED = 40;
    147148    static { // Registers all setting properties
    148149        new TileSourceDisplaySettings();
     
    12341235
    12351236        private boolean tooLarge() {
    1236             return insane() || this.tilesSpanned() > 20;
     1237            return insane() || this.tilesSpanned() > MAX_TILES_SPANNED;
    12371238        }
    12381239
     
    12901291            if (tooLarge()) {
    12911292                // Too many tiles... refuse to download
    1292                 Logging.warn("Not downloading all tiles because there is more than 18 tiles on an axis!");
     1293                Logging.warn("Not downloading all tiles because there is more than {0} tiles on an axis!", MAX_TILES_SPANNED);
    12931294                return;
    12941295            }
Note: See TracChangeset for help on using the changeset viewer.