OpenLayers. Geometry

A 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
OpenLayers. GeometryA Geometry is a description of a geographic object.
Constructor
OpenLayers. GeometryCreates a geometry object.
Functions
cloneCreate a clone of this geometry.
getBoundsGet the bounds for this Geometry.
calculateBoundsRecalculate the bounds for the geometry.

Constructor

OpenLayers. Geometry

Creates a geometry object.

Functions

clone

clone: function()

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.

getBounds

getBounds: function()

Get the bounds for this Geometry.  If bounds is not set, it is calculated again, this makes queries faster.

Returns

{OpenLayers.Bounds}

calculateBounds

calculateBounds: function()

Recalculate the bounds for the geometry.

clone: function()
Create a clone of this geometry.
getBounds: function()
Get the bounds for this Geometry.
calculateBounds: function()
Recalculate the bounds for the geometry.
Creates a geometry object.
Instances of this class represent bounding boxes.
Close