Changeset 13839 in josm for trunk/src/org/openstreetmap/josm/gui
- Timestamp:
- 2018-05-26T09:08:02+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java
r13733 r13839 1358 1358 if (info == null) { 1359 1359 List<Tile> allTiles = this.allExistingTiles(); 1360 info = new TileSetInfo();1361 info.hasLoadingTiles = allTiles.size() < this.size();1362 info.hasAllLoadedTiles = true;1360 TileSetInfo newInfo = new TileSetInfo(); 1361 newInfo.hasLoadingTiles = allTiles.size() < this.size(); 1362 newInfo.hasAllLoadedTiles = true; 1363 1363 for (Tile t : allTiles) { 1364 1364 if ("no-tile".equals(t.getValue("tile-info"))) { 1365 info.hasOverzoomedTiles = true;1365 newInfo.hasOverzoomedTiles = true; 1366 1366 } 1367 1367 if (t.isLoaded()) { 1368 1368 if (!t.hasError()) { 1369 info.hasVisibleTiles = true;1369 newInfo.hasVisibleTiles = true; 1370 1370 } 1371 1371 } else { 1372 info.hasAllLoadedTiles = false;1372 newInfo.hasAllLoadedTiles = false; 1373 1373 if (t.isLoading()) { 1374 info.hasLoadingTiles = true;1374 newInfo.hasLoadingTiles = true; 1375 1375 } 1376 1376 } 1377 1377 } 1378 info = newInfo; 1378 1379 } 1379 1380 }
Note:
See TracChangeset
for help on using the changeset viewer.