- Timestamp:
- 2021-02-17T08:53:53+01:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java
r17402 r17492 145 145 implements ImageObserver, TileLoaderListener, ZoomChangeListener, FilterChangeListener, DisplaySettingsChangeListener { 146 146 private static final String PREFERENCE_PREFIX = "imagery.generic"; 147 private static final int MAX_TILES_SPANNED = 40; 147 148 static { // Registers all setting properties 148 149 new TileSourceDisplaySettings(); … … 1234 1235 1235 1236 private boolean tooLarge() { 1236 return insane() || this.tilesSpanned() > 20;1237 return insane() || this.tilesSpanned() > MAX_TILES_SPANNED; 1237 1238 } 1238 1239 … … 1290 1291 if (tooLarge()) { 1291 1292 // 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); 1293 1294 return; 1294 1295 }
Note:
See TracChangeset
for help on using the changeset viewer.