Move jsdoc constructor comments for controls

This commit is contained in:
Frederic Junod
2018-07-17 16:44:33 +02:00
parent e1e5e54d74
commit f140ff368d
10 changed files with 41 additions and 22 deletions

View File

@@ -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 : {};