Vector tile rendering requires canvas to be cleared

This commit is contained in:
Tim Schaub
2017-09-25 21:13:00 -07:00
parent 22f0b30737
commit 8033e25663

View File

@@ -227,9 +227,7 @@ 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);
}
context.clearRect(0, 0, width, height);
oversampling = this.oversampling_;
}
}