Compare commits
11 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
272a3c6b11 | ||
|
|
54db71917d | ||
|
|
546b995c3b | ||
|
|
6eea18938d | ||
|
|
242fe21f33 | ||
|
|
c92ac87bf5 | ||
|
|
bb9e13a3e5 | ||
|
|
d1b1444744 | ||
|
|
8992ed68f9 | ||
|
|
84ffdfb5f3 | ||
|
|
60a9abbf8f |
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))
|
||||
|
||||
7
changelog/v5.3.3.md
Normal file
7
changelog/v5.3.3.md
Normal file
@@ -0,0 +1,7 @@
|
||||
# 5.3.2
|
||||
|
||||
The 5.3.3 release is a patch that addresses a scope issue with event listeners in minified builds.
|
||||
|
||||
* [#9603](https://github.com/openlayers/openlayers/pull/9603) - Use global scope for addEventListener ([@bartvde](https://github.com/bartvde))
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ol",
|
||||
"version": "5.3.1",
|
||||
"version": "5.3.3",
|
||||
"description": "OpenLayers mapping library",
|
||||
"keywords": [
|
||||
"map",
|
||||
|
||||
@@ -1031,7 +1031,7 @@ class PluggableMap extends BaseObject {
|
||||
|
||||
if (!this.handleResize_) {
|
||||
this.handleResize_ = this.updateSize.bind(this);
|
||||
addEventListener(EventType.RESIZE, this.handleResize_, false);
|
||||
window.addEventListener(EventType.RESIZE, this.handleResize_, false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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_;
|
||||
|
||||
@@ -315,7 +315,8 @@ describe('ol.control.ScaleLine', function() {
|
||||
expect(ctrl.element.innerText).to.be('5 in');
|
||||
|
||||
ctrl.setUnits('nautical');
|
||||
expect(ctrl.element.innerText).to.be('0.00005 nm');
|
||||
expect(ctrl.element.innerText.indexOf('nm')).to.not.be(-1);
|
||||
expect(parseFloat(ctrl.element.innerText).toFixed(5)).to.be('0.00005');
|
||||
|
||||
ctrl.setUnits('us');
|
||||
expect(ctrl.element.innerText).to.be('5 in');
|
||||
|
||||
Reference in New Issue
Block a user