Add ol.geom.MultiPolygon#getInteriorPoints
This commit is contained in:
@@ -54,6 +54,17 @@ ol.geom.MultiPolygon.prototype.getEndss = function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return {Array.<ol.Coordinate>} Interior points.
|
||||||
|
*/
|
||||||
|
ol.geom.MultiPolygon.prototype.getInteriorPoints = function() {
|
||||||
|
var ys = ol.geom.flat.linearRingssMidYs(
|
||||||
|
this.flatCoordinates, 0, this.endss_, this.stride);
|
||||||
|
return ol.geom.flat.linearRingssGetInteriorPoints(
|
||||||
|
this.flatCoordinates, 0, this.endss_, this.stride, ys);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return {Array.<ol.geom.Polygon>} Polygons.
|
* @return {Array.<ol.geom.Polygon>} Polygons.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user