OpenLayers.Geometry - OpenLayers

# 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. Geometry | A Geometry is a description of a geographic object.
Constructor |
OpenLayers. Geometry | Creates a geometry object.
Functions |
clone | Create a clone of this geometry.
getBounds | Get the bounds for this Geometry.
calculateBounds | Recalculate 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