OpenLayers JavaScript Mapping Library |
OpenLayers. Geometry. PolygonPolygon is a collection of Geometry.LinearRings. Inherits fromSummary
OpenLayers. Geometry. PolygonConstructor for a Polygon geometry. The first ring (this.component[0])is the outer bounds of the polygon and all subsequent rings (this.component[1-n]) are internal holes. Parameters
createRegularPolygon
Create a regular polygon around a radius. Useful for creating circles and the like. Parameters
|
Calculated by subtracting the areas of the internal holes from the area of the outer hole.
getArea: function()
Create a regular polygon around a radius.
OpenLayers.Geometry.Polygon.createRegularPolygon = function( origin, radius, sides, rotation )