Skip to content

Commit 4a56fbb

Browse files
committed
Fix tiled elevation coverage absent resource list analysis during retrieve.
1 parent f23f70d commit 4a56fbb

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/globe/TiledElevationCoverage.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -571,11 +571,9 @@ define(['../util/AbsentResourceList',
571571

572572
// Intentionally not documented.
573573
TiledElevationCoverage.prototype.retrieveTileImage = function (tile) {
574-
if (this.currentRetrievals.indexOf(tile.tileKey) < 0) {
575-
576-
if (this.currentRetrievals.length > this.retrievalQueueSize) {
577-
return;
578-
}
574+
if (this.currentRetrievals.length < this.retrievalQueueSize
575+
&& this.currentRetrievals.indexOf(tile.tileKey) < 0
576+
&& !this.absentResourceList.isResourceAbsent(tile.tileKey)) {
579577

580578
var url = this.resourceUrlForTile(tile, this.retrievalImageFormat),
581579
xhr = new XMLHttpRequest(),

0 commit comments

Comments
 (0)