clarify docs for LonLat
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3708 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -11,23 +11,27 @@ OpenLayers.LonLat.prototype = {
|
||||
|
||||
/**
|
||||
* APIProperty: lon
|
||||
* {Float}
|
||||
* {Float} The x-axis coodinate in map units
|
||||
*/
|
||||
lon: 0.0,
|
||||
|
||||
/**
|
||||
* APIProperty: lat
|
||||
* {Float}
|
||||
* {Float} The y-axis coordinate in map units
|
||||
*/
|
||||
lat: 0.0,
|
||||
|
||||
/**
|
||||
* Constructor: OpenLayers.LonLat
|
||||
* Create a new OpenLayers.LonLat instance
|
||||
* Create a new map location.
|
||||
*
|
||||
* Parameters:
|
||||
* lon - {Number} The lon coordinate
|
||||
* lat - {Number} The lat coordinate
|
||||
* lon - {Number} The x-axis coordinate in map units. If your map is in
|
||||
* a geographic projection, this will be the Longitude. Otherwise,
|
||||
* it will be the x coordinate of the map location in your map units.
|
||||
* lat - {Number} The y-axis coordinate in map units. If your map is in
|
||||
* a geographic projection, this will be the Latitude. Otherwise,
|
||||
* it will be the y coordinate of the map location in your map units.
|
||||
*/
|
||||
initialize: function(lon, lat) {
|
||||
this.lon = parseFloat(lon);
|
||||
|
||||
Reference in New Issue
Block a user