diff --git a/src/ol/control/Attribution.js b/src/ol/control/Attribution.js index e3531e90e6..57d4d8922e 100644 --- a/src/ol/control/Attribution.js +++ b/src/ol/control/Attribution.js @@ -41,11 +41,13 @@ import {visibleAtResolution} from '../layer/Layer.js'; * By default it will show in the bottom right portion of the map, but this can * be changed by using a css selector for `.ol-attribution`. * - * @constructor - * @param {module:ol/control/Attribution~Options=} opt_options Attribution options. * @api */ class Attribution extends Control { + + /** + * @param {module:ol/control/Attribution~Options=} opt_options Attribution options. + */ constructor(opt_options) { const options = opt_options ? opt_options : {}; diff --git a/src/ol/control/Control.js b/src/ol/control/Control.js index de7215e614..ebeea4f3e0 100644 --- a/src/ol/control/Control.js +++ b/src/ol/control/Control.js @@ -43,11 +43,13 @@ import {listen, unlistenByKey} from '../events.js'; * You can also extend this base for your own control class. See * examples/custom-controls for an example of how to do this. * - * @constructor - * @param {module:ol/control/Control~Options} options Control options. * @api */ class Control extends BaseObject { + + /** + * @param {module:ol/control/Control~Options} options Control options. + */ constructor(options) { super(); diff --git a/src/ol/control/FullScreen.js b/src/ol/control/FullScreen.js index 5bc3487537..15ce93e7bc 100644 --- a/src/ol/control/FullScreen.js +++ b/src/ol/control/FullScreen.js @@ -60,12 +60,13 @@ const getChangeType = (function() { * The [Fullscreen API](http://www.w3.org/TR/fullscreen/) is used to * toggle the map in full screen mode. * - * - * @constructor - * @param {module:ol/control/FullScreen~Options=} opt_options Options. * @api */ class FullScreen extends Control { + + /** + * @param {module:ol/control/FullScreen~Options=} opt_options Options. + */ constructor(opt_options) { const options = opt_options ? opt_options : {}; diff --git a/src/ol/control/MousePosition.js b/src/ol/control/MousePosition.js index 666d30c558..f3f68f3996 100644 --- a/src/ol/control/MousePosition.js +++ b/src/ol/control/MousePosition.js @@ -44,12 +44,13 @@ const COORDINATE_FORMAT = 'coordinateFormat'; * By default the control is shown in the top right corner of the map, but this * can be changed by using the css selector `.ol-mouse-position`. * - * @constructor - * @param {module:ol/control/MousePosition~Options=} opt_options Mouse position - * options. * @api */ class MousePosition extends Control { + + /** + * @param {module:ol/control/MousePosition~Options=} opt_options Mouse position options. + */ constructor(opt_options) { const options = opt_options ? opt_options : {}; diff --git a/src/ol/control/OverviewMap.js b/src/ol/control/OverviewMap.js index 5095040040..435fd4d4cc 100644 --- a/src/ol/control/OverviewMap.js +++ b/src/ol/control/OverviewMap.js @@ -60,11 +60,14 @@ const MIN_RATIO = 0.1; /** * Create a new control with a map acting as an overview map for an other * defined map. - * @constructor - * @param {module:ol/control/OverviewMap~Options=} opt_options OverviewMap options. + * * @api */ class OverviewMap extends Control { + + /** + * @param {module:ol/control/OverviewMap~Options=} opt_options OverviewMap options. + */ constructor(opt_options) { const options = opt_options ? opt_options : {}; diff --git a/src/ol/control/Rotate.js b/src/ol/control/Rotate.js index a12205dce0..6b364daa66 100644 --- a/src/ol/control/Rotate.js +++ b/src/ol/control/Rotate.js @@ -31,11 +31,13 @@ import EventType from '../events/EventType.js'; * To style this control use css selector `.ol-rotate`. A `.ol-hidden` css * selector is added to the button when the rotation is 0. * - * @constructor - * @param {module:ol/control/Rotate~Options=} opt_options Rotate options. * @api */ class Rotate extends Control { + + /** + * @param {module:ol/control/Rotate~Options=} opt_options Rotate options. + */ constructor(opt_options) { const options = opt_options ? opt_options : {}; diff --git a/src/ol/control/ScaleLine.js b/src/ol/control/ScaleLine.js index 6fbf7b15cb..c854920cfd 100644 --- a/src/ol/control/ScaleLine.js +++ b/src/ol/control/ScaleLine.js @@ -58,11 +58,13 @@ const LEADING_DIGITS = [1, 2, 5]; * By default the scale line will show in the bottom left portion of the map, * but this can be changed by using the css selector `.ol-scale-line`. * - * @constructor - * @param {module:ol/control/ScaleLine~Options=} opt_options Scale line options. * @api */ class ScaleLine extends Control { + + /** + * @param {module:ol/control/ScaleLine~Options=} opt_options Scale line options. + */ constructor(opt_options) { const options = opt_options ? opt_options : {}; diff --git a/src/ol/control/Zoom.js b/src/ol/control/Zoom.js index 20832e274c..b6a0cc1fb1 100644 --- a/src/ol/control/Zoom.js +++ b/src/ol/control/Zoom.js @@ -30,11 +30,13 @@ import {easeOut} from '../easing.js'; * This control is one of the default controls of a map. To style this control * use css selectors `.ol-zoom-in` and `.ol-zoom-out`. * - * @constructor - * @param {module:ol/control/Zoom~Options=} opt_options Zoom options. * @api */ class Zoom extends Control { + + /** + * @param {module:ol/control/Zoom~Options=} opt_options Zoom options. + */ constructor(opt_options) { const options = opt_options ? opt_options : {}; diff --git a/src/ol/control/ZoomSlider.js b/src/ol/control/ZoomSlider.js index 6dbc53ab42..e2369689c2 100644 --- a/src/ol/control/ZoomSlider.js +++ b/src/ol/control/ZoomSlider.js @@ -41,11 +41,13 @@ const Direction = { * * map.addControl(new ZoomSlider()); * - * @constructor - * @param {module:ol/control/ZoomSlider~Options=} opt_options Zoom slider options. * @api */ class ZoomSlider extends Control { + + /** + * @param {module:ol/control/ZoomSlider~Options=} opt_options Zoom slider options. + */ constructor(opt_options) { const options = opt_options ? opt_options : {}; diff --git a/src/ol/control/ZoomToExtent.js b/src/ol/control/ZoomToExtent.js index 35997066ae..b55f82aa6f 100644 --- a/src/ol/control/ZoomToExtent.js +++ b/src/ol/control/ZoomToExtent.js @@ -25,11 +25,13 @@ import {CLASS_CONTROL, CLASS_UNSELECTABLE} from '../css.js'; * A button control which, when pressed, changes the map view to a specific * extent. To style this control use the css selector `.ol-zoom-extent`. * - * @constructor - * @param {module:ol/control/ZoomToExtent~Options=} opt_options Options. * @api */ class ZoomToExtent extends Control { + + /** + * @param {module:ol/control/ZoomToExtent~Options=} opt_options Options. + */ constructor(opt_options) { const options = opt_options ? opt_options : {};