Keep track of tile source count

This commit is contained in:
Andreas Hocevar
2016-02-04 13:55:56 +01:00
committed by Tim Schaub
parent 72ea0ecfd8
commit 0c23d9a7ff
4 changed files with 5 additions and 1 deletions

View File

@@ -298,6 +298,7 @@ ol.renderer.Layer.prototype.manageTilePyramid = function(
var tileSourceKey = goog.getUid(tileSource).toString();
if (!(tileSourceKey in frameState.wantedTiles)) {
frameState.wantedTiles[tileSourceKey] = {};
++frameState.tileSourceCount;
}
var wantedTiles = frameState.wantedTiles[tileSourceKey];
var tileQueue = frameState.tileQueue;