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 7921bcf
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/globe/TiledElevationCoverage.js
Original file line number Diff line number Diff line change
Expand Up @@ -571,18 +571,15 @@ 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(),
elevationCoverage = this;

if (!url)
return;
if (!url) return;

xhr.open("GET", url, true);
xhr.responseType = 'arraybuffer';
Expand Down

0 comments on commit 7921bcf

Please sign in to comment.