Add center constraint to ol.View2D

This commit is contained in:
Tom Payne
2013-06-17 16:47:20 +02:00
committed by Frederic Junod
parent 1c003b5ab1
commit 73b9b6b6a0
3 changed files with 37 additions and 3 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