Add ol.geom.MultiPolygon#getInteriorPoints

This commit is contained in:
Tom Payne
2013-12-01 18:20:48 +01:00
parent a1b1483d3e
commit c0a50ce24b

View File

@@ -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.
*/