Merge pull request #1746 from sbrunner/fitcoordinates

Fit coordinates on visible map, Center coodinate on positions
This commit is contained in:
Tom Payne
2014-03-10 14:08:47 +01:00
7 changed files with 473 additions and 0 deletions

View File

@@ -1074,3 +1074,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
*/