Skip to content

Commit

Permalink
Merge pull request CesiumGS#8028 from sfariaNG/imagery-timeouts
Browse files Browse the repository at this point in the history
Render globe tiles if any layer is loaded
  • Loading branch information
likangning93 authored Sep 20, 2019
2 parents ae24f15 + 764526c commit d521ad1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Change Log
* Fixed labels not showing for individual entities in data sources when clustering is enabled. [#6087](https://github.com/AnalyticalGraphicsInc/cesium/issues/6087)
* Fixed a crash for 3D Tiles that have zero volume. [#7945](https://github.com/AnalyticalGraphicsInc/cesium/pull/7945)
* Fixed a bug where dynamic polylines did not use the given arcType. [#8191](https://github.com/AnalyticalGraphicsInc/cesium/issues/8191)
* Fixed a bug where GlobeSurfaceTile would not render the tile until all layers completed loading causing globe to appear to hang. [#7974](https://github.com/AnalyticalGraphicsInc/cesium/issues/7974)

### 1.61 - 2019-09-03

Expand Down
1 change: 1 addition & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for details on how to contribute to Cesiu
* [Raytheon Intelligence and Information Systems](http://www.raytheon.com/)
* [David Hudlow](https://github.com/DavidHudlow)
* [Ashley Mort](https://github.com/mortac8)
* [Sherwin Faria](https://github.com/sfariaNG)
* [Evax Software](http://www.evax.fr)
* [Evax Software](https://github.com/evax)
* [Aviture](http://aviture.us.com)
Expand Down
8 changes: 5 additions & 3 deletions Source/Scene/GlobeSurfaceTile.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ define([
GlobeSurfaceTile.prototype.processImagery = function(tile, terrainProvider, frameState, skipLoading) {
var surfaceTile = tile.data;
var isUpsampledOnly = tile.upsampledFromParent;
var isRenderable = tile.renderable;
var isAnyTileLoaded = false;
var isDoneLoading = true;

// Transition imagery states
Expand Down Expand Up @@ -337,14 +337,16 @@ define([
isDoneLoading = isDoneLoading && thisTileDoneLoading;

// The imagery is renderable as soon as we have any renderable imagery for this region.
isRenderable = isRenderable && (thisTileDoneLoading || defined(tileImagery.readyImagery));
isAnyTileLoaded = isAnyTileLoaded || (thisTileDoneLoading || defined(tileImagery.readyImagery));

isUpsampledOnly = isUpsampledOnly && defined(tileImagery.loadingImagery) &&
(tileImagery.loadingImagery.state === ImageryState.FAILED || tileImagery.loadingImagery.state === ImageryState.INVALID);
}

tile.upsampledFromParent = isUpsampledOnly;
tile.renderable = isRenderable;

// Allow rendering if any available layers are loaded
tile.renderable = tile.renderable && (isAnyTileLoaded || isDoneLoading);

return isDoneLoading;
};
Expand Down

0 comments on commit d521ad1

Please sign in to comment.