Changeset 10964 in josm
- Timestamp:
- 2016-09-05T22:47:14+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java
r10941 r10964 1547 1547 public boolean hasOverzoomedTiles; 1548 1548 public boolean hasLoadingTiles; 1549 public boolean hasAllLoadedTiles; 1549 1550 } 1550 1551 … … 1557 1558 result.hasOverzoomedTiles = true; 1558 1559 } 1560 result.hasAllLoadedTiles &= t.isLoaded(); 1559 1561 1560 1562 if (t.isLoaded()) { … … 1670 1672 // Too many tiles... refuse to download 1671 1673 if (!ts.tooLarge()) { 1672 //Main.debug("size: " + ts.size() + " spanned: " + ts.tilesSpanned()); 1674 // try to load tiles from desired zoom level, no matter what we will show (for example, tiles from previous zoom level 1675 // on zoom in) 1673 1676 ts.loadAllTiles(false); 1674 1677 } … … 1676 1679 if (displayZoomLevel != zoom) { 1677 1680 ts = dts.getTileSet(displayZoomLevel); 1681 if (!dts.getTileSetInfo(displayZoomLevel).hasAllLoadedTiles && displayZoomLevel < zoom) { 1682 /* 1683 * if we are showing tiles from lower zoom level, ensure that all tiles are loaded 1684 * as they are few, and should not trash the tile cache 1685 * This is especially needed when dts.getTileSet(zoom).tooLarge() is true and we are 1686 * not loading tiles 1687 */ 1688 ts.loadAllTiles(false); 1689 } 1678 1690 } 1679 1691
Note:
See TracChangeset
for help on using the changeset viewer.