Use in-place filtering for post-render functions
This commit is contained in:
@@ -530,13 +530,12 @@ ol.Map.prototype.handleMapBrowserEvent = function(mapBrowserEvent) {
|
|||||||
ol.Map.prototype.handlePostRender = function() {
|
ol.Map.prototype.handlePostRender = function() {
|
||||||
this.tileQueue_.reprioritize(); // FIXME only call if needed
|
this.tileQueue_.reprioritize(); // FIXME only call if needed
|
||||||
this.tileQueue_.loadMoreTiles();
|
this.tileQueue_.loadMoreTiles();
|
||||||
goog.array.forEach(
|
var postRenderFunctions = this.postRenderFunctions_;
|
||||||
this.postRenderFunctions_,
|
var i;
|
||||||
function(postRenderFunction) {
|
for (i = 0; i < postRenderFunctions.length; ++i) {
|
||||||
postRenderFunction(this, this.frameState_);
|
postRenderFunctions[i](this, this.frameState_);
|
||||||
},
|
}
|
||||||
this);
|
postRenderFunctions.length = 0;
|
||||||
this.postRenderFunctions_.length = 0;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user