Lift common composite rendering code into ol.Map
This commit is contained in:
+10
-1
@@ -436,7 +436,16 @@ ol.Map.prototype.redraw = function() {
|
||||
*/
|
||||
ol.Map.prototype.redrawInternal = function() {
|
||||
this.dirty_ = false;
|
||||
return false;
|
||||
|
||||
var animate = false;
|
||||
|
||||
this.forEachVisibleLayer(function(layer, layerRenderer) {
|
||||
if (layerRenderer.redraw()) {
|
||||
animate = true;
|
||||
}
|
||||
});
|
||||
|
||||
return animate;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user