Improvements for projection docs
This commit is contained in:
committed by
Frederic Junod
parent
eb74d93d48
commit
720a815479
@@ -256,18 +256,21 @@ OpenLayers.Map = OpenLayers.Class({
|
||||
|
||||
/**
|
||||
* APIProperty: projection
|
||||
* {String} Set in the map options to override the default projection
|
||||
* string this map. When using a projection other than EPSG:4326
|
||||
* {String} Set in the map options to specify the default projection
|
||||
* for layers added to this map. When using a projection other than EPSG:4326
|
||||
* (CRS:84, Geographic) or EPSG:3857 (EPSG:900913, Web Mercator),
|
||||
* also set maxExtent and maxResolution. Default is "EPSG:4326".
|
||||
* also set maxExtent, maxResolution or resolutions. Default is "EPSG:4326".
|
||||
* Note that the projection of the map is usually determined
|
||||
* by that of the current baseLayer (see <baseLayer> and <getProjectionObject>).
|
||||
*/
|
||||
projection: "EPSG:4326",
|
||||
|
||||
/**
|
||||
* APIProperty: units
|
||||
* {String} The map units. Possible values are 'degrees' (or 'dd'), 'm',
|
||||
* 'ft', 'km', 'mi', 'inches'. Only required if the projection default
|
||||
* should be overridden.
|
||||
* 'ft', 'km', 'mi', 'inches'. Normally taken from the projection.
|
||||
* Only required if both map and layers do not define a projection,
|
||||
* or if they define a projection which does not define units
|
||||
*/
|
||||
units: null,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user