Don't automatically orient rings in ol.geom.Polygon

This commit is contained in:
Tom Payne
2014-01-21 07:47:36 +01:00
parent 36387adf3f
commit ff73f080b3
3 changed files with 8 additions and 65 deletions

View File

@@ -314,9 +314,8 @@ describe('ol.interaction.Draw', function() {
var geometry = features[0].getGeometry();
expect(geometry).to.be.a(ol.geom.Polygon);
// note that order is forced clockwise (despite drawing counter-clockwise)
expect(geometry.getCoordinates()).to.eql([
[[10, -20], [30, -10], [30, -20], [10, -20]]
[[10, -20], [30, -20], [30, -10], [10, -20]]
]);
});