diff --git a/src/base/TilesRendererBase.js b/src/base/TilesRendererBase.js index 25f54575..d03b0ccd 100644 --- a/src/base/TilesRendererBase.js +++ b/src/base/TilesRendererBase.js @@ -108,7 +108,7 @@ export class TilesRendererBase { this.fetchOptions = {}; this.plugins = []; this.queuedTiles = []; - this.cachedSinceReset = new Set(); + this.cachedSinceLoadComplete = new Set(); const lruCache = new LRUCache(); lruCache.unloadPriorityCallback = lruPriorityCallback; @@ -126,7 +126,7 @@ export class TilesRendererBase { this.downloadQueue = downloadQueue; this.parseQueue = parseQueue; this.stats = { - inCacheSinceReset: 0, + inCacheSinceLoad: 0, inCache: 0, parsing: 0, downloading: 0, @@ -644,10 +644,10 @@ export class TilesRendererBase { // Decrement stats stats.inCache --; - if ( this.cachedSinceReset.has( tile ) ) { + if ( this.cachedSinceLoadComplete.has( tile ) ) { - this.cachedSinceReset.delete( tile ); - stats.inCacheSinceReset --; + this.cachedSinceLoadComplete.delete( tile ); + stats.inCacheSinceLoad --; } @@ -675,8 +675,8 @@ export class TilesRendererBase { } - this.cachedSinceReset.add( tile ); - stats.inCacheSinceReset ++; + this.cachedSinceLoadComplete.add( tile ); + stats.inCacheSinceLoad ++; stats.inCache ++; stats.downloading ++; tile.__loadingState = LOADING; @@ -825,8 +825,8 @@ export class TilesRendererBase { if ( stats.parsing === 0 && stats.downloading === 0 ) { - this.cachedSinceReset.clear(); - stats.inCacheSinceReset = 0; + this.cachedSinceLoadComplete.clear(); + stats.inCacheSinceLoad = 0; }