OpenLayers JavaScript Mapping Library |
OpenLayers. LonLatThis class represents a longitude and latitude pair Summary
OpenLayers. LonLatCreate a new map location. Parameters
clone
Returns{OpenLayers.LonLat} New OpenLayers.LonLat object with the same lon and lat values add
Parameters
Returns{OpenLayers.LonLat} A new OpenLayers.LonLat object with the lon and lat passed-in added to this’s. equals
Parameters
Returns{Boolean} Boolean value indicating whether the passed-in OpenLayers.LonLat object has the same lon and lat components as this. Note: if ll passed in is null, returns false wrapDateLine
Parameters
Returns{OpenLayers.LonLat} A copy of this lonlat, but wrapped around the “dateline” (as specified by the borders of maxExtent) fromString
Alternative constructor that builds a new OpenLayers.LonLat from a parameter string Parameters
Returns{OpenLayers.LonLat} New OpenLayers.LonLat object built from the passed-in String. |
Return a readable string version of the lonlat
toString:function()
{String} Shortened String representation of OpenLayers.LonLat object.
toShortString:function()
{OpenLayers.LonLat} New OpenLayers.LonLat object with the same lon and lat values
clone:function()
add:function( lon, lat )
equals:function( ll )
wrapDateLine: function( maxExtent )
Alternative constructor that builds a new OpenLayers.LonLat from a parameter string
OpenLayers.LonLat.fromString = function( str )