Merge pull request #859 from elemoine/zoomtoextent

Add a ZoomToExtent control
This commit is contained in:
Éric Lemoine
2013-07-19 05:46:26 -07:00
8 changed files with 233 additions and 58 deletions

View File

@@ -226,6 +226,15 @@
* @property {number|undefined} minResolution Minimum resolution.
*/
/**
* @typedef {Object} ol.control.ZoomToExtentOptions
* @property {string|undefined} className Class name.
* @property {ol.Map|undefined} map Map.
* @property {Element|undefined} target Target.
* @property {ol.Extent|undefined} extent The extent to zoom to. If
* undefined the validity extent of the view projection is used.
*/
/**
* @typedef {Object} ol.interaction.DoubleClickZoomOptions
* @property {number|undefined} delta The zoom delta applied on each double