Vector tile rendering requires canvas to be cleared
This commit is contained in:
@@ -227,9 +227,7 @@ ol.renderer.canvas.TileLayer.prototype.prepareFrame = function(frameState, layer
|
|||||||
canvas.width = width;
|
canvas.width = width;
|
||||||
canvas.height = height;
|
canvas.height = height;
|
||||||
} else {
|
} 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_;
|
oversampling = this.oversampling_;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user