OpenLayers JavaScript Mapping Library |
OpenLayers. GeometryA Geometry is a description of a geographic object. Create an instance of this class with the OpenLayers.Geometry constructor. This is a base class, typical geometry types are described by subclasses of this class. Summary
parent{OpenLayers.Geometry}This is set when a Geometry is added as component of another geometry bounds{OpenLayers.Bounds} The bounds of this geometry |
Destroy this geometry.
destroy: function()
Calculate the length of this geometry.
getLength: function()
Calculate the area of this geometry.
getArea: function()
Returns the Well-Known Text representation of a geometry
toString: function()