Compare commits

..

11 Commits

Author SHA1 Message Date
ahocevar
272a3c6b11 Update package version to 5.3.3 2019-05-27 10:18:35 +02:00
ahocevar
54db71917d Changelog for v5.3.3 2019-05-27 10:18:05 +02:00
Bart van den Eijnden
546b995c3b Merge pull request #9603 from bartvde/fix-addeventlistener-5x
Use global scope for addEventListener
2019-05-24 16:26:10 +02:00
bartvde
6eea18938d Fix scaleline test case 2019-05-24 16:08:46 +02:00
bartvde
242fe21f33 Use window scope for addEventListener 2019-05-24 15:04:52 +02:00
Andreas Hocevar
c92ac87bf5 Merge pull request #9423 from openlayers/release-v5.3.2
Release v5.3.2
2019-04-11 11:25:20 +02:00
ahocevar
bb9e13a3e5 Update package versin to v5.3.2 2019-04-11 11:23:15 +02:00
ahocevar
d1b1444744 Changelog for v5.3.2 2019-04-11 11:22:44 +02:00
Éric Lemoine
8992ed68f9 Merge pull request #9422 from elemoine/tile-render
Clear context when source revision changed (v5.3.x fix)
2019-04-11 11:16:58 +02:00
Éric Lemoine
84ffdfb5f3 Merge pull request #9422 from elemoine/tile-render
Clear context when source revision changed (v5.3.x fix)
2019-04-11 10:56:44 +02:00
Éric Lemoine
60a9abbf8f Clear context when source revision changed
This is to avoid rendering artifacts when making a layer invisible,
changing its source's PARAMS, and making the layer visible again.
2019-04-11 10:36:18 +02:00
6 changed files with 19 additions and 4 deletions

6
changelog/v5.3.2.md Normal file
View 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
View 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))

View File

@@ -1,6 +1,6 @@
{
"name": "ol",
"version": "5.3.1",
"version": "5.3.3",
"description": "OpenLayers mapping library",
"keywords": [
"map",

View File

@@ -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);
}
}

View File

@@ -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_;

View File

@@ -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');