Don't automatically orient rings in ol.geom.Polygon
This commit is contained in:
@@ -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]]
|
||||
]);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user