Ignore:
Timestamp:
2015-08-20T23:01:54+02:00 (9 years ago)
Author:
wiktorn
Message:

Bing fixes.

  • Pass and handle error on url creation (attribution not loaded yet). Closes: #11776
  • Properly identify "no tiles at this zoom level" situation in tile sets. This tiles are never marked as loaded. Closes: #11785
File:
1 edited

Legend:

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

    r8659 r8673  
    13051305        result.hasLoadingTiles = allTiles.size() < ts.size();
    13061306        for (Tile t : allTiles) {
     1307            if ("no-tile".equals(t.getValue("tile-info"))) {
     1308                result.hasOverzoomedTiles = true;
     1309            }
     1310
    13071311            if (t.isLoaded()) {
    13081312                if (!t.hasError()) {
    13091313                    result.hasVisibleTiles = true;
    13101314                }
    1311                 if ("no-tile".equals(t.getValue("tile-info"))) {
    1312                     result.hasOverzoomedTiles = true;
    1313                 }
    1314             } else {
     1315            } else if (t.isLoading()) {
    13151316                result.hasLoadingTiles = true;
    13161317            }
     
    14101411            // If all tiles at displayZoomLevel is loaded, load all tiles at next zoom level
    14111412            // to make sure there're really no more zoom levels
     1413            // loading is done in the next if section
    14121414            if (zoom == displayZoomLevel && !tsi.hasLoadingTiles && zoom < dts.maxZoom) {
    14131415                zoom++;
     
    14161418            // When we have overzoomed tiles and all tiles at current zoomlevel is loaded,
    14171419            // load tiles at previovus zoomlevels until we have all tiles on screen is loaded.
     1420            // loading is done in the next if section
    14181421            while (zoom > dts.minZoom && tsi.hasOverzoomedTiles && !tsi.hasLoadingTiles) {
    14191422                zoom--;
Note: See TracChangeset for help on using the changeset viewer.