Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bb9e13a3e5 | ||
|
|
d1b1444744 | ||
|
|
8992ed68f9 |
6
changelog/v5.3.2.md
Normal file
6
changelog/v5.3.2.md
Normal file
@@ -0,0 +1,6 @@
|
||||
# 5.3.2
|
||||
|
||||
The 5.3.2 release is a patch that addresses a tile source issue with old tile data when the source revision changed.
|
||||
|
||||
* [#9422](https://github.com/openlayers/openlayers/pull/9422) - Clear context when source revision changed (v5.3.x fix) ([@elemoine](https://github.com/elemoine))
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ol",
|
||||
"version": "5.3.1",
|
||||
"version": "5.3.2",
|
||||
"description": "OpenLayers mapping library",
|
||||
"keywords": [
|
||||
"map",
|
||||
|
||||
@@ -234,7 +234,8 @@ class CanvasTileLayerRenderer extends IntermediateCanvasRenderer {
|
||||
canvas.width = width;
|
||||
canvas.height = height;
|
||||
} else {
|
||||
if (this.renderedExtent_ && !equals(imageExtent, this.renderedExtent_)) {
|
||||
if ((this.renderedExtent_ && !equals(imageExtent, this.renderedExtent_)) ||
|
||||
this.renderedRevision != sourceRevision) {
|
||||
context.clearRect(0, 0, width, height);
|
||||
}
|
||||
oversampling = this.oversampling_;
|
||||
|
||||
Reference in New Issue
Block a user