OpenLayers. Geometry. Polygon

Polygon is a collection of Geometry.LinearRings.

Inherits from

Summary
Polygon is a collection of Geometry.LinearRings.
Constructor for a Polygon geometry.
Calculated by subtracting the areas of the internal holes from the area of the outer hole.

Functions

OpenLayers. Geometry. Polygon

Constructor 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

componentsArray({<OpenLayers.Geometry.LinearRing>})

Return

{OpenLayers.Geometry.Polygon}

getArea

getArea: function()

Calculated by subtracting the areas of the internal holes from the area of the outer hole.

Return

{float} The area of the geometry

getArea: function()
Calculated by subtracting the areas of the internal holes from the area of the outer hole.
A Collection is exactly what it sounds like: A collection of different Geometries.
A Geometry is a description of a geographic object.
Constructor for a Polygon geometry.