Merge pull request #7323 from tschaub/flashless

Only clear the canvas when needed
This commit is contained in:
Tim Schaub
2017-10-06 09:31:50 -06:00
committed by GitHub

View File

@@ -228,7 +228,9 @@ ol.renderer.canvas.TileLayer.prototype.prepareFrame = function(frameState, layer
canvas.width = width;
canvas.height = height;
} else {
if (this.renderedExtent_ && !ol.extent.equals(imageExtent, this.renderedExtent_)) {
context.clearRect(0, 0, width, height);
}
oversampling = this.oversampling_;
}
}