Small corrections to ol.View docs
This commit is contained in:
+1
-1
@@ -433,7 +433,7 @@ olx.ViewOptions.prototype.center;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Rotation constraint. `false` means no constraint. `true` means no constraint,
|
* Rotation constraint. `false` means no constraint. `true` means no constraint,
|
||||||
* but snap to zero near zero. A number constraints the rotation to that number
|
* but snap to zero near zero. A number constrains the rotation to that number
|
||||||
* of values. For example, `4` will constrain the rotation to 0, 90, 180, and
|
* of values. For example, `4` will constrain the rotation to 0, 90, 180, and
|
||||||
* 270 degrees. The default is `true`.
|
* 270 degrees. The default is `true`.
|
||||||
* @type {boolean|number|undefined}
|
* @type {boolean|number|undefined}
|
||||||
|
|||||||
+3
-3
@@ -49,7 +49,7 @@ ol.ViewHint = {
|
|||||||
* ### The view states
|
* ### The view states
|
||||||
*
|
*
|
||||||
* An `ol.View` is determined by three states: `center`, `resolution`,
|
* An `ol.View` is determined by three states: `center`, `resolution`,
|
||||||
* and `rotation`. To each state corresponds a getter and a setter. E.g.
|
* and `rotation`. Each state has a corresponding getter and setter, e.g.
|
||||||
* `getCenter` and `setCenter` for the `center` state.
|
* `getCenter` and `setCenter` for the `center` state.
|
||||||
*
|
*
|
||||||
* An `ol.View` has a `projection`. The projection determines the
|
* An `ol.View` has a `projection`. The projection determines the
|
||||||
@@ -67,7 +67,7 @@ ol.ViewHint = {
|
|||||||
* But an `ol.View` object also has a *resolution constraint*, a
|
* But an `ol.View` object also has a *resolution constraint*, a
|
||||||
* *rotation constraint* and a *center constraint*.
|
* *rotation constraint* and a *center constraint*.
|
||||||
*
|
*
|
||||||
* As said above no constraints are applied when the setters are used to set
|
* As said above, no constraints are applied when the setters are used to set
|
||||||
* new states for the view. Applying constraints is done explicitly through
|
* new states for the view. Applying constraints is done explicitly through
|
||||||
* the use of the `constrain*` functions (`constrainResolution` and
|
* the use of the `constrain*` functions (`constrainResolution` and
|
||||||
* `constrainRotation` and `constrainCenter`).
|
* `constrainRotation` and `constrainCenter`).
|
||||||
@@ -82,7 +82,7 @@ ol.ViewHint = {
|
|||||||
* `maxZoom`, and `zoomFactor`. If `resolutions` is set, the other three
|
* `maxZoom`, and `zoomFactor`. If `resolutions` is set, the other three
|
||||||
* options are ignored. See {@link ol.ViewOptions} for more information.
|
* options are ignored. See {@link ol.ViewOptions} for more information.
|
||||||
*
|
*
|
||||||
* The *rotation constaint* is currently not configurable. It snaps the
|
* The *rotation constraint* is currently not configurable. It snaps the
|
||||||
* rotation value to zero when approaching the horizontal.
|
* rotation value to zero when approaching the horizontal.
|
||||||
*
|
*
|
||||||
* @constructor
|
* @constructor
|
||||||
|
|||||||
Reference in New Issue
Block a user