Extent

Description

An extent is also known as a bounding box.

Files

  • lib/extent.js

License

Copyright © 2009, Open Source Geospatial Foundation This program is dual licensed under the GNU General Public License and Simplified BSD license.  http://svn.osgeo.org/mapbender/trunk/mapbender/license/license.txt

Summary
ExtentAn extent is also known as a bounding box.
Functions
Extent
setAllows to set the center (one param) or the extent (two params)
toStringReturns a comma-separated list of all four coordinates

Functions

Extent

Mapbender.Extent = function (minx,
miny,
maxx,
maxy)

Parameters (coordinates)

minx{Float} x-coordinate of south western point
miny{Float} y-coordinate of south western point
maxx{Float} x-coordinate of north eastern point
maxy{Float} y-coordinate of north eastern point

or parameters (points)

sw{Point} south western point
ne{Point} north eastern point

set

this.set = function (min,
max)

Description

Allows to set the center (one param) or the extent (two params)

Parameters (center) center - {Point} center of bounding box

Parameters (center) sw - {Point} south western point of bounding box ne - {Point} north eastern point of bounding box

toString

Mapbender.Extent.prototype.toString = function ()

Description

Returns a comma-separated list of all four coordinates

Mapbender.Extent = function (minx,
miny,
maxx,
maxy)
this.set = function (min,
max)
Allows to set the center (one param) or the extent (two params)
Mapbender.Extent.prototype.toString = function ()
Returns a comma-separated list of all four coordinates
Close