Add new constrainResolution option to olx.interaction.DefaultsOptions

This commit is contained in:
Frederic Junod
2017-04-11 09:08:28 +02:00
parent 55f8a2775e
commit 15e6fa454d
4 changed files with 51 additions and 2 deletions

View File

@@ -2398,7 +2398,9 @@ olx.interaction;
/**
* Interactions for the map. Default is `true` for all options.
* @typedef {{altShiftDragRotate: (boolean|undefined),
* @typedef {{
* altShiftDragRotate: (boolean|undefined),
* constrainResolution: (boolean|undefined),
* doubleClickZoom: (boolean|undefined),
* keyboard: (boolean|undefined),
* mouseWheelZoom: (boolean|undefined),
@@ -2407,7 +2409,8 @@ olx.interaction;
* pinchRotate: (boolean|undefined),
* pinchZoom: (boolean|undefined),
* zoomDelta: (number|undefined),
* zoomDuration: (number|undefined)}}
* zoomDuration: (number|undefined)
* }}
*/
olx.interaction.DefaultsOptions;
@@ -2420,6 +2423,15 @@ olx.interaction.DefaultsOptions;
olx.interaction.DefaultsOptions.prototype.altShiftDragRotate;
/**
* Zoom to the closest integer zoom level after the wheel/trackpad or
* pinch gesture ends. Default is `false`.
* @type {boolean|undefined}
* @api
*/
olx.interaction.DefaultsOptions.prototype.constrainResolution;
/**
* Whether double click zoom is desired. Default is `true`.
* @type {boolean|undefined}