From 5247903a4afac49c7c300a4bcafcdfac716876fe Mon Sep 17 00:00:00 2001 From: Peter Robins Date: Tue, 12 Aug 2014 07:13:10 +0000 Subject: [PATCH] Small corrections to ol.View docs --- externs/olx.js | 2 +- src/ol/view.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/externs/olx.js b/externs/olx.js index b5c59853b30..af4868e6e9e 100644 --- a/externs/olx.js +++ b/externs/olx.js @@ -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} diff --git a/src/ol/view.js b/src/ol/view.js index a5334143725..5b6fd62c940 100644 --- a/src/ol/view.js +++ b/src/ol/view.js @@ -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