Merge pull request #1075 from fredj/center-constraint

Add ol.CenterConstraint
This commit is contained in:
Frédéric Junod
2013-10-02 02:54:17 -07:00
9 changed files with 88 additions and 4 deletions

View File

@@ -101,6 +101,7 @@
* @property {ol.Coordinate|undefined} center The initial center for the view.
* The coordinate system for the center is specified with the `projection`
* option.
* @property {ol.Extent|undefined} extent The extent to constraint the center to.
* @property {number|undefined} maxResolution The maximum resolution used to
* determine the resolution constraint. It is used together with `maxZoom`
* and `zoomFactor`. If unspecified it is calculated in such a way that the