From 4fb82961df393c6e2455c6a5214447c0d639db88 Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Thu, 23 Jan 2014 02:09:21 +0100 Subject: [PATCH] Replace ol.geom.MultiPolygon#getInteriorPoints with getFlatInteriorPoints --- src/ol/geom/multipolygon.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/ol/geom/multipolygon.js b/src/ol/geom/multipolygon.js index fe8ebc865c..ffb8089491 100644 --- a/src/ol/geom/multipolygon.js +++ b/src/ol/geom/multipolygon.js @@ -31,13 +31,13 @@ ol.geom.MultiPolygon = function(coordinates, opt_layout) { * @private * @type {number} */ - this.interiorPointsRevision_ = -1; + this.flatInteriorPointsRevision_ = -1; /** * @private - * @type {Array.} + * @type {Array.} */ - this.interiorPoints_ = null; + this.flatInteriorPoints_ = null; /** * @private @@ -138,17 +138,17 @@ ol.geom.MultiPolygon.prototype.getEndss = function() { /** - * @return {Array.} Interior points. + * @return {Array.} Flat interior points. */ -ol.geom.MultiPolygon.prototype.getInteriorPoints = function() { - if (this.interiorPointsRevision_ != this.getRevision()) { +ol.geom.MultiPolygon.prototype.getFlatInteriorPoints = function() { + if (this.flatInteriorPointsRevision_ != this.getRevision()) { var ys = ol.geom.flat.linearRingssMidYs( this.flatCoordinates, 0, this.endss_, this.stride); - this.interiorPoints_ = ol.geom.flat.linearRingssGetInteriorPoints( + this.flatInteriorPoints_ = ol.geom.flat.linearRingssGetInteriorPoints( this.getOrientedFlatCoordinates(), 0, this.endss_, this.stride, ys); - this.interiorPointsRevision_ = this.getRevision(); + this.flatInteriorPointsRevision_ = this.getRevision(); } - return this.interiorPoints_; + return this.flatInteriorPoints_; };