Module type for ol.Collection
This commit is contained in:
@@ -39,7 +39,7 @@ import {listen, unlistenByKey} from '../events.js';
|
||||
*
|
||||
* The main advantage of having this as a control rather than a simple separate
|
||||
* DOM element is that preventing propagation is handled for you. Controls
|
||||
* will also be objects in a `ol.Collection`, so you can use their methods.
|
||||
* will also be objects in a {@link module:ol/Collection~Collection}, so you can use their methods.
|
||||
*
|
||||
* You can also extend this base for your own control class. See
|
||||
* examples/custom-controls for an example of how to do this.
|
||||
|
||||
@@ -45,7 +45,7 @@ const MIN_RATIO = 0.1;
|
||||
* @property {boolean} [collapsible=true] Whether the control can be collapsed or not.
|
||||
* @property {string|Element} [label='»'] Text label to use for the collapsed
|
||||
* overviewmap button. Instead of text, also an element (e.g. a `span` element) can be used.
|
||||
* @property {Array.<ol.layer.Layer>|ol.Collection.<ol.layer.Layer>} [layers]
|
||||
* @property {Array.<ol.layer.Layer>|module:ol/Collection~Collection.<ol.layer.Layer>} [layers]
|
||||
* Layers for the overview map. If not set, then all main map layers are used
|
||||
* instead.
|
||||
* @property {function(module:ol/MapEvent~MapEvent)} [render] Function called when the control
|
||||
|
||||
Reference in New Issue
Block a user