Move deflateCoodinates into ol.geom.flat

This commit is contained in:
Tom Payne
2013-11-12 12:19:08 +01:00
parent 16994f1774
commit dc1ad7bb83
8 changed files with 89 additions and 78 deletions

View File

@@ -1,6 +1,7 @@
goog.provide('ol.geom.Polygon');
goog.require('ol.geom.Geometry');
goog.require('ol.geom.flat');
@@ -67,7 +68,7 @@ ol.geom.Polygon.prototype.getType = function() {
ol.geom.Polygon.prototype.setCoordinates =
function(coordinates, opt_layout) {
this.setLayout(opt_layout, coordinates, 2);
ol.geom.deflateCoordinatess(
ol.geom.flat.deflateCoordinatess(
this.flatCoordinates, 0, coordinates, this.stride, this.ends_);
ol.geom.orientFlatLinearRings(
this.flatCoordinates, 0, this.ends_, this.stride);