Fix ScaleLine control documentation
The scale line shown is derived from y-axis distances, not x-axis.
This commit is contained in:
@@ -36,10 +36,11 @@ ol.control.ScaleLineUnits = {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @classdesc
|
* @classdesc
|
||||||
* A control displaying rough x-axis distances, calculated for the center of the
|
* A control displaying rough y-axis distances, calculated for the center of the
|
||||||
* viewport.
|
* viewport. For conformal projections (e.g. EPSG:3857, the default view
|
||||||
* No scale line will be shown when the x-axis distance cannot be calculated in
|
* projection in OpenLayers), the scale is valid for all directions.
|
||||||
* the view projection (e.g. at or beyond the poles in EPSG:4326).
|
* No scale line will be shown when the y-axis distance of a pixel at the
|
||||||
|
* viewport center cannot be calculated in the view projection.
|
||||||
* By default the scale line will show in the bottom left portion of the map,
|
* By default the scale line will show in the bottom left portion of the map,
|
||||||
* but this can be changed by using the css selector `.ol-scale-line`.
|
* but this can be changed by using the css selector `.ol-scale-line`.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user