From c6aef2a7da24f3dac6e60395c6811661d677c278 Mon Sep 17 00:00:00 2001 From: Andreas Hocevar Date: Thu, 1 Sep 2016 16:38:01 +0200 Subject: [PATCH 1/3] Merge pull request #5828 from ahocevar/close-polygons Always close polygon rings --- src/ol/render/canvas/replay.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/ol/render/canvas/replay.js b/src/ol/render/canvas/replay.js index 7eb19173f3..1d8c98ea83 100644 --- a/src/ol/render/canvas/replay.js +++ b/src/ol/render/canvas/replay.js @@ -1268,10 +1268,8 @@ ol.render.canvas.PolygonReplay.prototype.drawFlatCoordinatess_ = function(flatCo for (var i = 0; i < numEnds; ++i) { var end = ends[i]; var myBegin = this.coordinates.length; - var myEnd = this.appendFlatCoordinates(flatCoordinates, offset, end, stride, - // Performance optimization: only close the ring when we do not have a - // stroke. Otherwise closePath() will take care of that. - !stroke); + var myEnd = this.appendFlatCoordinates( + flatCoordinates, offset, end, stride, true); var moveToLineToInstruction = [ol.render.canvas.Instruction.MOVE_TO_LINE_TO, myBegin, myEnd]; this.instructions.push(moveToLineToInstruction); From a112dd83e24a4db1c8c60447551aced095eed218 Mon Sep 17 00:00:00 2001 From: Andreas Hocevar Date: Thu, 1 Sep 2016 16:44:06 +0200 Subject: [PATCH 2/3] Changelog for v3.18.2 --- changelog/v3.18.2.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 changelog/v3.18.2.md diff --git a/changelog/v3.18.2.md b/changelog/v3.18.2.md new file mode 100644 index 0000000000..a265d4029b --- /dev/null +++ b/changelog/v3.18.2.md @@ -0,0 +1,9 @@ +# v3.18.2 + +## Summary + +The v3.18.2 release is a patch release that addresses a regression in the v3.18.1 release. See the [v3.18.0 release notes](https://github.com/openlayers/ol3/releases/tag/v3.18.0) for details on upgrading from v3.17.x. + +## Fixes + + * [#5828](https://github.com/openlayers/ol3/pull/5828) - Always close polygon rings ([@ahocevar](https://github.com/ahocevar)) From 394c338ff882a940e598dc7ce05c308ca56ecf61 Mon Sep 17 00:00:00 2001 From: Andreas Hocevar Date: Thu, 1 Sep 2016 16:44:37 +0200 Subject: [PATCH 3/3] Update package version to 3.18.2 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index da9a4082ab..5fe48a4b64 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "openlayers", - "version": "3.18.1", + "version": "3.18.2", "description": "Build tools and sources for developing OpenLayers based mapping applications", "keywords": [ "map",