Skip to content

Commit

Permalink
Fix tiled elevation coverage absent resource list analysis during ret…
Browse files Browse the repository at this point in the history
…rieve.
  • Loading branch information
ComBatVision committed Aug 15, 2022
1 parent f23f70d commit 4a56fbb
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/globe/TiledElevationCoverage.js
Original file line number Diff line number Diff line change
Expand Up @@ -571,11 +571,9 @@ define(['../util/AbsentResourceList',

// Intentionally not documented.
TiledElevationCoverage.prototype.retrieveTileImage = function (tile) {
if (this.currentRetrievals.indexOf(tile.tileKey) < 0) {

if (this.currentRetrievals.length > this.retrievalQueueSize) {
return;
}
if (this.currentRetrievals.length < this.retrievalQueueSize
&& this.currentRetrievals.indexOf(tile.tileKey) < 0
&& !this.absentResourceList.isResourceAbsent(tile.tileKey)) {

var url = this.resourceUrlForTile(tile, this.retrievalImageFormat),
xhr = new XMLHttpRequest(),
Expand Down

0 comments on commit 4a56fbb

Please sign in to comment.