From 4a56fbb02524fd7d9540d43b0c6ba1dd4d3c0de6 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 | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/globe/TiledElevationCoverage.js b/src/globe/TiledElevationCoverage.js index 80f23e59ab..c5147e1dfa 100644 --- a/src/globe/TiledElevationCoverage.js +++ b/src/globe/TiledElevationCoverage.js @@ -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(),