From 7921bcf255adc15681330dc30da77d066d964d99 Mon Sep 17 00:00:00 2001 From: Eugene Maksymenko Date: Mon, 15 Aug 2022 19:39:26 +0300 Subject: [PATCH] Fix tiled elevation coverage absent resource list analysis during retrieve. --- src/globe/TiledElevationCoverage.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/globe/TiledElevationCoverage.js b/src/globe/TiledElevationCoverage.js index 80f23e59a..202eb0a22 100644 --- a/src/globe/TiledElevationCoverage.js +++ b/src/globe/TiledElevationCoverage.js @@ -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';