Use 'HTMLElement' type instead of 'Element' in controls
This commit is contained in:
@@ -10,9 +10,9 @@ import {CLASS_CONTROL, CLASS_UNSELECTABLE} from '../css.js';
|
||||
/**
|
||||
* @typedef {Object} Options
|
||||
* @property {string} [className='ol-zoom-extent'] Class name.
|
||||
* @property {Element|string} [target] Specify a target if you want the control
|
||||
* @property {HTMLElement|string} [target] Specify a target if you want the control
|
||||
* to be rendered outside of the map's viewport.
|
||||
* @property {string|Element} [label='E'] Text label to use for the button.
|
||||
* @property {string|HTMLElement} [label='E'] Text label to use for the button.
|
||||
* Instead of text, also an element (e.g. a `span` element) can be used.
|
||||
* @property {string} [tipLabel='Fit to extent'] Text label to use for the button tip.
|
||||
* @property {module:ol/extent~Extent} [extent] The extent to zoom to. If undefined the validity
|
||||
|
||||
Reference in New Issue
Block a user