Project

General

Profile

1
OpenLayers.Bounds
2

    
3
This class represents a bounding box. Data stores as left, bottom, right, top floats.
4

    
5
* Constructor
6
  OpenLayers.Bounds(left, bottom, right, top) -- Create new Bounds.
7

    
8
* Methods
9
  clone() -- {OpenLayers.Bounds} -- Return copy of the current bounds.
10
  toString() -- {String} -- Return bounds as string. 
11
  toBBOX() -- {String} -- Return bounds as simple string, usable for WMS.
12
  getWidth() -- {float} -- Return width of bounds.
13
  getHeight() -- {float} -- Return height of bounds.
14
  getSize() -- {OpenLayers.Size} -- Return size of bounds.
15
  getCenterPixel() -- {OpenLayers.Pixel} -- Return center of bounds as pixel.
16
  getCenterLonLat() -- {OpenLayers.LonLat} -- Return center of bounds as LonLat.
17
  equals({OpenLayers.Bounds|bounds}) -- {Boolean} -- whether or not the bounds are equivilant.
18
  add({float|x}, {float|y}) -- {OpenLayers.Bounds} -- Shift bounds by x and y. 
19
  contains({float|x}, {float|y}, {Boolean|inclusive}) -- {Boolean} -- Return Whether or not the passed-in coordinates are within this bounds 
20
  containsBounds({OpenLayers.Bounds|bounds}, {Boolean|partial}, {Boolean|inclusive}) -- {Boolean} -- Returns whether or not the passed-in OpenLayers.Bounds object is contained within this bounds. partial indicates whether bounds must be contained or only overlap. Inclusive determines whether border is included.
21
  determineQuadrant({OpenLayers.LonLat|lonlat}) -- {String} -- Determine which quadrant the LonLat is in. Returns combination of "b" or "t" and "l" or "r".
(2-2/34)