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

@@ -192,8 +192,6 @@ ol.geom.Polygon.prototype.setCoordinates = function(coordinates, opt_layout) {
var ends = ol.geom.flat.deflateCoordinatess(
this.flatCoordinates, 0, coordinates, this.stride, this.ends_);
this.flatCoordinates.length = ends.length === 0 ? 0 : ends[ends.length - 1];
ol.geom.flat.orientLinearRings(
this.flatCoordinates, 0, this.ends_, this.stride);
this.dispatchChangeEvent();
}
};