Move ControlOptions to ol/control/Control
This commit is contained in:
@@ -12,41 +12,6 @@ let olx;
|
||||
olx.control;
|
||||
|
||||
|
||||
/**
|
||||
* @typedef {{element: (Element|undefined),
|
||||
* render: (function(ol.MapEvent)|undefined),
|
||||
* target: (Element|string|undefined)}}
|
||||
*/
|
||||
olx.control.ControlOptions;
|
||||
|
||||
|
||||
/**
|
||||
* The element is the control's container element. This only needs to be
|
||||
* specified if you're developing a custom control.
|
||||
* @type {Element|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.control.ControlOptions.prototype.element;
|
||||
|
||||
|
||||
/**
|
||||
* Function called when the control should be re-rendered. This is called
|
||||
* in a requestAnimationFrame callback.
|
||||
* @type {function(ol.MapEvent)|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.control.ControlOptions.prototype.render;
|
||||
|
||||
|
||||
/**
|
||||
* Specify a target if you want the control to be rendered outside of the map's
|
||||
* viewport.
|
||||
* @type {Element|string|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.control.ControlOptions.prototype.target;
|
||||
|
||||
|
||||
/**
|
||||
* @typedef {{className: (string|undefined),
|
||||
* label: (string|Element|undefined),
|
||||
|
||||
@@ -1,15 +1,4 @@
|
||||
|
||||
/**
|
||||
* @typedef {Object} control_ControlOptions
|
||||
* @property {Element|undefined} element The element is the control's container element. This only needs to be
|
||||
* specified if you're developing a custom control.
|
||||
* @property {function(ol.MapEvent)|undefined} render Function called when the control should be re-rendered. This is called
|
||||
* in a requestAnimationFrame callback.
|
||||
* @property {Element|string|undefined} target Specify a target if you want the control to be rendered outside of the map's
|
||||
* viewport.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* @typedef {Object} control_FullScreenOptions
|
||||
* @property {string|undefined} className CSS class name. Default is `ol-full-screen`.
|
||||
|
||||
Reference in New Issue
Block a user