Use ol.geom.flat.orient namespace

This commit is contained in:
Tim Schaub
2015-03-25 16:33:17 -06:00
parent c600a92516
commit 5f6ceff3a7
2 changed files with 2 additions and 2 deletions

View File

@@ -60,7 +60,7 @@ ol.geom.flat.orient.linearRingsAreOriented =
* @return {boolean} `true` if all rings are correctly oriented, `false` * @return {boolean} `true` if all rings are correctly oriented, `false`
* otherwise. * otherwise.
*/ */
ol.geom.flat.linearRingssAreOriented = ol.geom.flat.orient.linearRingssAreOriented =
function(flatCoordinates, offset, endss, stride) { function(flatCoordinates, offset, endss, stride) {
var i, ii; var i, ii;
for (i = 0, ii = endss.length; i < ii; ++i) { for (i = 0, ii = endss.length; i < ii; ++i) {

View File

@@ -213,7 +213,7 @@ ol.geom.MultiPolygon.prototype.getInteriorPoints = function() {
ol.geom.MultiPolygon.prototype.getOrientedFlatCoordinates = function() { ol.geom.MultiPolygon.prototype.getOrientedFlatCoordinates = function() {
if (this.orientedRevision_ != this.getRevision()) { if (this.orientedRevision_ != this.getRevision()) {
var flatCoordinates = this.flatCoordinates; var flatCoordinates = this.flatCoordinates;
if (ol.geom.flat.linearRingssAreOriented( if (ol.geom.flat.orient.linearRingssAreOriented(
flatCoordinates, 0, this.endss_, this.stride)) { flatCoordinates, 0, this.endss_, this.stride)) {
this.orientedFlatCoordinates_ = flatCoordinates; this.orientedFlatCoordinates_ = flatCoordinates;
} else { } else {