Add ol.View2D#fitGeometry

This commit is contained in:
Stéphane Brunner
2014-03-04 19:10:14 +01:00
parent 8c9d22c5e5
commit 9984ca109c
4 changed files with 149 additions and 0 deletions

View File

@@ -1052,3 +1052,12 @@
* @property {!Array.<number>} resolutions Resolutions.
* @todo stability experimental
*/
/**
* @typedef {Object} olx.View2D.fitGeometryOptions
* @property {!Array.<number>} padding Padding (in pixels) to be cleared inside the view. Values in the array are top, right, bottom and left padding. Default is `[0, 0, 0, 0]`.
* @property {boolean|undefined} constrainResolution Constrain the resolution. Default is `true`.
* @property {boolean|undefined} nearest Get the nearest extent. Default is `false`.
* @property {number|undefined} minResolution Minimum resolution that we zoom to. Default is `0`.
* @todo stability experimental
*/