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

@@ -1027,7 +1027,7 @@ ol.Map.prototype.handlePostRender = function() {
maxTotalLoading = this.loadTilesWhileInteracting_ ? 8 : 0;
maxNewLoads = 2;
}
tileSourceCount = Object.keys(frameState.wantedTiles).length;
tileSourceCount = frameState.tileSourceCount;
}
maxTotalLoading *= tileSourceCount;
maxNewLoads *= tileSourceCount;
@@ -1332,6 +1332,7 @@ ol.Map.prototype.renderFrame_ = function(time) {
size: size,
skippedFeatureUids: this.skippedFeatureUids_,
tileQueue: this.tileQueue_,
tileSourceCount: 0,
time: time,
usedTiles: {},
viewState: viewState,