diff --git a/src/ol/control/Control.js b/src/ol/control/Control.js index 2f03317507..1f54f28ce7 100644 --- a/src/ol/control/Control.js +++ b/src/ol/control/Control.js @@ -91,7 +91,7 @@ class Control extends BaseObject { } /** - * @inheritDoc + * Clean up. */ disposeInternal() { removeNode(this.element); diff --git a/src/ol/control/FullScreen.js b/src/ol/control/FullScreen.js index d3741fb8e6..d2f82a3268 100644 --- a/src/ol/control/FullScreen.js +++ b/src/ol/control/FullScreen.js @@ -213,7 +213,10 @@ class FullScreen extends Control { } /** - * @inheritDoc + * Remove the control from its current map and attach it to the new map. + * Subclasses may set up event handlers to get notified about changes to + * the map here. + * @param {import("../PluggableMap.js").default} map Map. * @api */ setMap(map) { diff --git a/src/ol/control/MousePosition.js b/src/ol/control/MousePosition.js index 3a2c017999..b55796638e 100644 --- a/src/ol/control/MousePosition.js +++ b/src/ol/control/MousePosition.js @@ -162,7 +162,10 @@ class MousePosition extends Control { } /** - * @inheritDoc + * Remove the control from its current map and attach it to the new map. + * Subclasses may set up event handlers to get notified about changes to + * the map here. + * @param {import("../PluggableMap.js").default} map Map. * @api */ setMap(map) { diff --git a/src/ol/control/OverviewMap.js b/src/ol/control/OverviewMap.js index a77f8ae698..a64b15979d 100644 --- a/src/ol/control/OverviewMap.js +++ b/src/ol/control/OverviewMap.js @@ -255,7 +255,10 @@ class OverviewMap extends Control { } /** - * @inheritDoc + * Remove the control from its current map and attach it to the new map. + * Subclasses may set up event handlers to get notified about changes to + * the map here. + * @param {import("../PluggableMap.js").default} map Map. * @api */ setMap(map) { diff --git a/src/ol/control/ZoomSlider.js b/src/ol/control/ZoomSlider.js index 58f2229d40..b65ec01808 100644 --- a/src/ol/control/ZoomSlider.js +++ b/src/ol/control/ZoomSlider.js @@ -148,7 +148,11 @@ class ZoomSlider extends Control { } /** - * @inheritDoc + * Remove the control from its current map and attach it to the new map. + * Subclasses may set up event handlers to get notified about changes to + * the map here. + * @param {import("../PluggableMap.js").default} map Map. + * @api */ setMap(map) { super.setMap(map);