OpenLayers. Geometry. Rectangle

A Rectangle is a simple geometry.  It is specified by a a point (x and y) and dimensions (width and height), all of which are directly accessible as properties.

Inherits

Summary
A Rectangle is a simple geometry.
{Float}
{Float}
{Float}
{Float}
Recalculate the bounds for the geometry.
{Float} The length of the geometry
{Float} The area of the geometry

Properties

x

{Float}

y

{Float}

width

{Float}

height

{Float}

Constructor

OpenLayers. Geometry. Rectangle

Parameters

points{Array(OpenLayers.Geometry.Point}

Functions

calculateBounds

calculateBounds: function()

Recalculate the bounds for the geometry.

getLength

getLength: function()

Returns

{Float} The length of the geometry

getArea

getArea: function()

Returns

{Float} The area of the geometry

calculateBounds: function()
Recalculate the bounds for the geometry.
getLength: function()
{Float} The length of the geometry
getArea: function()
{Float} The area of the geometry
A Geometry is a description of a geographic object.
Point geometry class.