Don't change the canvas size to clear it
This commit is contained in:
@@ -94,8 +94,9 @@ goog.inherits(ol.renderer.dom.VectorLayer, ol.renderer.dom.Layer);
|
|||||||
* @inheritDoc
|
* @inheritDoc
|
||||||
*/
|
*/
|
||||||
ol.renderer.dom.VectorLayer.prototype.clearFrame = function() {
|
ol.renderer.dom.VectorLayer.prototype.clearFrame = function() {
|
||||||
this.context_.canvas.width = 0;
|
// Clear the canvas
|
||||||
this.context_.canvas.height = 0;
|
var canvas = this.context_.canvas;
|
||||||
|
canvas.width = canvas.width;
|
||||||
this.renderedRevision_ = 0;
|
this.renderedRevision_ = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user