Lift common composite rendering code into ol.Map

This commit is contained in:
Tom Payne
2012-07-18 00:21:20 +02:00
parent 86335211a6
commit 659ef30802
3 changed files with 10 additions and 19 deletions
+10 -1
View File
@@ -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;
};