OpenLayers JavaScript Mapping Library OpenLayers Base Types |
OpenLayers Base TypesBasic types in OpenLayers are described here. Summary
add
Parameters
Return{OpenLayers.Pixel} A new Pixel with this pixel’s x&y augmented by the values passed in. equals
Determine where this size is equal to another Parameters
Return{Boolean} The passed in size has the same h and w properties as this one. Note that if sz passed in is null, returns false. OpenLayers. BoundsInstances of this class represent bounding boxes. Data stored as left, bottom, right, top floats Summary
OpenLayers. BoundsConstruct a new bounds object. Parameters
Return{OpenLayers.Bounds} A new bounds instance. clone
Create a cloned instance of this bounds. Return{OpenLayers.Bounds} A fresh copy of the bounds equals
Test a two bounds for equivalence Parameters
Return{Boolean} The passed-in OpenLayers.Bounds object has the same left, right, top, bottom components as this. Note that if bounds passed in is null, returns false. oppositeQuadrant
Get the opposite quadrant for a given quadrant string. Parameters
Return{String} The opposing quadrant (“br” “tr” “tl” “bl”). For Example, if you pass in “bl” it returns “tr”, if you pass in “br” it returns “tl”, etc. |
Create an OpenLayers style class
create: function()
Inherit from one or more OpenLayers style classes
inherit: function ()
Cast this object into a string
toString:function()
Return a clone of this pixel object
clone:function()
Determine whether one pixel is equivalent to another
equals:function( px )
add:function( x, y )
Return the string representation of a size object
toString:function()
Create a clone of this size object
clone:function()
Determine where this size is equal to another
equals:function( sz )
Return a readable string version of the lonlat
toString:function()
Create a cloned instance of this bounds.
clone:function()
Test a two bounds for equivalence
equals:function( bounds )
Get the opposite quadrant for a given quadrant string.
OpenLayers.Bounds.oppositeQuadrant = function( quadrant )