diff --git a/src/ol/geom/flat/orientflatgeom.js b/src/ol/geom/flat/orientflatgeom.js index 48c7dd5008..60aaa2e3b1 100644 --- a/src/ol/geom/flat/orientflatgeom.js +++ b/src/ol/geom/flat/orientflatgeom.js @@ -60,7 +60,7 @@ ol.geom.flat.orient.linearRingsAreOriented = * @return {boolean} `true` if all rings are correctly oriented, `false` * otherwise. */ -ol.geom.flat.linearRingssAreOriented = +ol.geom.flat.orient.linearRingssAreOriented = function(flatCoordinates, offset, endss, stride) { var i, ii; for (i = 0, ii = endss.length; i < ii; ++i) { diff --git a/src/ol/geom/multipolygon.js b/src/ol/geom/multipolygon.js index 3dafa464d6..b4c8d28709 100644 --- a/src/ol/geom/multipolygon.js +++ b/src/ol/geom/multipolygon.js @@ -213,7 +213,7 @@ ol.geom.MultiPolygon.prototype.getInteriorPoints = function() { ol.geom.MultiPolygon.prototype.getOrientedFlatCoordinates = function() { if (this.orientedRevision_ != this.getRevision()) { var flatCoordinates = this.flatCoordinates; - if (ol.geom.flat.linearRingssAreOriented( + if (ol.geom.flat.orient.linearRingssAreOriented( flatCoordinates, 0, this.endss_, this.stride)) { this.orientedFlatCoordinates_ = flatCoordinates; } else {