A class representing the geographic coordinates in the form of latitude and longitude.
| EMAPI. | A class representing the geographic coordinates in the form of latitude and longitude. |
| Properties | |
| lon | {Float} Longitude (coordinate x). |
| lat | {Float} Latitude (coordinate y). |
| Functions | |
| EMAPI. | The constructor of a new instance of geographic point. |
| toString | Returns the coordinates in a text form. |
| toShortString | Returns the rectangle coordinates in the simplified text form. |
| clone | Creates a copy of the geographical point. |
| add | Creates a copy of the geographical point with coordinates shifted by given values. |
| equals | Compares two geographical points, the current one with the one passed in a parameter. |
| fromString | An alternative method constructing EMAPI.LonLat class objects basing on coordinates in a text form. |
clone:function()
Creates a copy of the geographical point.
{EMAPI.LonLat} A new EMAPI.LonLat object class with the same coordinate.
add:function( lon, lat )
Creates a copy of the geographical point with coordinates shifted by given values.
| lon | {Float} Shift of the longitude. |
| lat | {Float} Shift of the latitude. |
{EMAPI.LonLat} A new shifted EMAPI.LonLat.object.
equals: function ( obj )
Compares two geographical points, the current one with the one passed in a parameter.
| ll | {EMAPI.LonLat} A point to compare with the current. |
{Boolean} The information if the rectangles are the same.
fromString: function( str )
An alternative method constructing EMAPI.LonLat class objects basing on coordinates in a text form.
| str | {String} Coordinates separated by comma (i.a. “5,40”). |
{EMAPI.LonLat} The new EMAPI.LonLat object based on string that is passed in the parameter.
Returns the coordinates in a text form.
toString: function ()
Returns the rectangle coordinates in the simplified text form.
toShortString:function()
Creates a copy of the geographical point.
clone:function()
Creates a copy of the geographical point with coordinates shifted by given values.
add:function( lon, lat )
Compares two geographical points, the current one with the one passed in a parameter.
equals: function ( obj )
An alternative method constructing EMAPI.LonLat class objects basing on coordinates in a text form.
fromString: function( str )