Queue tiles before loading

This commit is contained in:
Tim Schaub
2017-06-26 18:31:53 -06:00
parent 0fc710bc48
commit 3ddb8712a3
2 changed files with 50 additions and 3 deletions

View File

@@ -220,8 +220,6 @@ ol.source.Raster.prototype.getImage = function(extent, resolution, pixelRatio, p
var frameState = this.updateFrameState_(extent, resolution, projection);
this.requestedFrameState_ = frameState;
frameState.tileQueue.loadMoreTiles(16, 16);
// check if we can't reuse the existing ol.ImageCanvas
if (this.renderedImageCanvas_) {
var renderedResolution = this.renderedImageCanvas_.getResolution();
@@ -235,6 +233,7 @@ ol.source.Raster.prototype.getImage = function(extent, resolution, pixelRatio, p
this.processSources_();
}
frameState.tileQueue.loadMoreTiles(16, 16);
return this.renderedImageCanvas_;
};