Use ol.geom.flat.orient namespace
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user