Move ol.ZOOMSLIDER_ANIMATION_DURATION const to a constructor option

This commit is contained in:
Frederic Junod
2015-04-13 14:52:38 +02:00
parent 3b4bc0be25
commit 3eb22559d6
3 changed files with 17 additions and 9 deletions
+9
View File
@@ -1435,6 +1435,7 @@ olx.control.ZoomOptions.prototype.target;
/**
* @typedef {{className: (string|undefined),
* duration: (number|undefined),
* maxResolution: (number|undefined),
* minResolution: (number|undefined),
* render: (function(ol.MapEvent)|undefined)}}
@@ -1451,6 +1452,14 @@ olx.control.ZoomSliderOptions;
olx.control.ZoomSliderOptions.prototype.className;
/**
* Animation duration in milliseconds. Default is `200`.
* @type {number|undefined}
* @api
*/
olx.control.ZoomSliderOptions.prototype.duration;
/**
* Maximum resolution.
* @type {number|undefined}