diff --git a/src/ol/geom/multipolygon.js b/src/ol/geom/multipolygon.js index 2f3e25966f..4265e4de13 100644 --- a/src/ol/geom/multipolygon.js +++ b/src/ol/geom/multipolygon.js @@ -196,8 +196,6 @@ ol.geom.MultiPolygon.prototype.setCoordinates = var lastEnds = endss[endss.length - 1]; this.flatCoordinates.length = lastEnds.length === 0 ? 0 : lastEnds[lastEnds.length - 1]; - ol.geom.flat.orientLinearRingss( - this.flatCoordinates, 0, this.endss_, this.stride); this.dispatchChangeEvent(); } }; diff --git a/test/spec/ol/interaction/drawinteraction.test.js b/test/spec/ol/interaction/drawinteraction.test.js index 4efdd2a50e..a1a070aba5 100644 --- a/test/spec/ol/interaction/drawinteraction.test.js +++ b/test/spec/ol/interaction/drawinteraction.test.js @@ -396,9 +396,8 @@ describe('ol.interaction.Draw', function() { var coordinates = geometry.getCoordinates(); expect(coordinates).to.have.length(1); - // note that order is forced clockwise (despite drawing counter-clockwise) expect(coordinates[0]).to.eql([ - [[10, -20], [30, -10], [30, -20], [10, -20]] + [[10, -20], [30, -20], [30, -10], [10, -20]] ]); });