Merge pull request #2519 from probins/view

Small corrections to ol.View docs
This commit is contained in:
Éric Lemoine
2014-08-12 09:19:39 +02:00
2 changed files with 4 additions and 4 deletions

View File

@@ -433,7 +433,7 @@ olx.ViewOptions.prototype.center;
/**
* 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
* 270 degrees. The default is `true`.
* @type {boolean|number|undefined}

View File

@@ -49,7 +49,7 @@ ol.ViewHint = {
* ### The view states
*
* 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.
*
* 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
* *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
* the use of the `constrain*` functions (`constrainResolution` and
* `constrainRotation` and `constrainCenter`).
@@ -82,7 +82,7 @@ ol.ViewHint = {
* `maxZoom`, and `zoomFactor`. If `resolutions` is set, the other three
* 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.
*
* @constructor