Lift common composite rendering code into ol.Map
This commit is contained in:
@@ -199,15 +199,3 @@ ol.dom.Map.prototype.handleResolutionChanged = function() {
|
||||
ol.dom.Map.prototype.handleSizeChanged = function() {
|
||||
goog.base(this, 'handleSizeChanged');
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
ol.dom.Map.prototype.redrawInternal = function() {
|
||||
goog.base(this, 'redrawInternal');
|
||||
this.forEachVisibleLayer(function(layer, layerRenderer) {
|
||||
layerRenderer.redraw();
|
||||
}, this);
|
||||
return false;
|
||||
};
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -413,12 +413,6 @@ ol.webgl.Map.prototype.redrawInternal = function() {
|
||||
|
||||
var animate = goog.base(this, 'redrawInternal');
|
||||
|
||||
this.forEachVisibleLayer(function(layer, layerRenderer) {
|
||||
if (layerRenderer.redraw()) {
|
||||
animate = true;
|
||||
}
|
||||
});
|
||||
|
||||
var gl = this.getGL();
|
||||
|
||||
gl.bindFramebuffer(goog.webgl.FRAMEBUFFER, null);
|
||||
|
||||
Reference in New Issue
Block a user