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 clone
Create a clone of this geometry. Does not set any non-standard properties of the cloned geometry. Returns{OpenLayers.Geometry} An exact clone of this geometry. extendBounds
Extend the existing bounds to include the new bounds. If geometry’s bounds is not yet set, then set a new Bounds. Parameters
atPoint
Parameters
Returns{Boolean} Whether or not the geometry is at the specified location |
Destroy this geometry.
destroy: function()
Create a clone of this geometry.
clone: function()
Nullify this components bounds and that of its parent as well.
clearBounds: function()
Extend the existing bounds to include the new bounds.
extendBounds: function( newBounds )
Get the bounds for this Geometry.
getBounds: function()
Recalculate the bounds for the geometry.
calculateBounds: function()
atPoint: function( lonlat, toleranceLon, toleranceLat )
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()