Compare commits

...

3 Commits

Author SHA1 Message Date
Andreas Hocevar
394c338ff8 Update package version to 3.18.2 2016-09-01 16:44:37 +02:00
Andreas Hocevar
a112dd83e2 Changelog for v3.18.2 2016-09-01 16:44:06 +02:00
Andreas Hocevar
c6aef2a7da Merge pull request #5828 from ahocevar/close-polygons
Always close polygon rings
2016-09-01 16:41:21 +02:00
3 changed files with 12 additions and 5 deletions

9
changelog/v3.18.2.md Normal file
View File

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

View File

@@ -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",

View File

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