Move ZoomOptions to ol/control/Zoom
This commit is contained in:
@@ -5,86 +5,6 @@
|
||||
let olx;
|
||||
|
||||
|
||||
/**
|
||||
* @typedef {{duration: (number|undefined),
|
||||
* className: (string|undefined),
|
||||
* zoomInLabel: (string|Element|undefined),
|
||||
* zoomOutLabel: (string|Element|undefined),
|
||||
* zoomInTipLabel: (string|undefined),
|
||||
* zoomOutTipLabel: (string|undefined),
|
||||
* delta: (number|undefined),
|
||||
* target: (Element|string|undefined)}}
|
||||
*/
|
||||
olx.control.ZoomOptions;
|
||||
|
||||
|
||||
/**
|
||||
* Animation duration in milliseconds. Default is `250`.
|
||||
* @type {number|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.control.ZoomOptions.prototype.duration;
|
||||
|
||||
|
||||
/**
|
||||
* CSS class name. Default is `ol-zoom`.
|
||||
* @type {string|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.control.ZoomOptions.prototype.className;
|
||||
|
||||
|
||||
/**
|
||||
* Text label to use for the zoom-in button. Default is `+`.
|
||||
* Instead of text, also an element (e.g. a `span` element) can be used.
|
||||
* @type {string|Element|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.control.ZoomOptions.prototype.zoomInLabel;
|
||||
|
||||
|
||||
/**
|
||||
* Text label to use for the zoom-out button. Default is `-`.
|
||||
* Instead of text, also an element (e.g. a `span` element) can be used.
|
||||
* @type {string|Element|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.control.ZoomOptions.prototype.zoomOutLabel;
|
||||
|
||||
|
||||
/**
|
||||
* Text label to use for the button tip. Default is `Zoom in`
|
||||
* @type {string|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.control.ZoomOptions.prototype.zoomInTipLabel;
|
||||
|
||||
|
||||
/**
|
||||
* Text label to use for the button tip. Default is `Zoom out`
|
||||
* @type {string|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.control.ZoomOptions.prototype.zoomOutTipLabel;
|
||||
|
||||
|
||||
/**
|
||||
* The zoom delta applied on each click.
|
||||
* @type {number|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.control.ZoomOptions.prototype.delta;
|
||||
|
||||
|
||||
/**
|
||||
* Specify a target if you want the control to be rendered outside of the map's
|
||||
* viewport.
|
||||
* @type {Element|string|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.control.ZoomOptions.prototype.target;
|
||||
|
||||
|
||||
/**
|
||||
* @typedef {{className: (string|undefined),
|
||||
* duration: (number|undefined),
|
||||
|
||||
Reference in New Issue
Block a user