Skip to content

Commit

Permalink
Merge pull request #2519 from probins/view
Browse files Browse the repository at this point in the history
Small corrections to ol.View docs
  • Loading branch information
Éric Lemoine committed Aug 12, 2014
2 parents 45f24ee + 5247903 commit c16622b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion externs/olx.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
6 changes: 3 additions & 3 deletions src/ol/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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`).
Expand All @@ -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
Expand Down

0 comments on commit c16622b

Please sign in to comment.