Remove remaining use of inherits in src
This commit is contained in:
+13
-15
@@ -40,18 +40,18 @@ const Property = {
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @classdesc
|
||||
* A {@link module:ol/Collection~Collection} of layers that are handled together.
|
||||
*
|
||||
* A generic `change` event is triggered when the group/Collection changes.
|
||||
*
|
||||
* @constructor
|
||||
* @extends {module:ol/layer/Base}
|
||||
* @param {module:ol/layer/Group~Options=} opt_options Layer options.
|
||||
* @api
|
||||
*/
|
||||
class LayerGroup {
|
||||
class LayerGroup extends BaseLayer {
|
||||
/**
|
||||
* @classdesc
|
||||
* A {@link module:ol/Collection~Collection} of layers that are handled together.
|
||||
*
|
||||
* A generic `change` event is triggered when the group/Collection changes.
|
||||
*
|
||||
* @constructor
|
||||
* @extends {module:ol/layer/Base}
|
||||
* @param {module:ol/layer/Group~Options=} opt_options Layer options.
|
||||
* @api
|
||||
*/
|
||||
constructor(opt_options) {
|
||||
|
||||
const options = opt_options || {};
|
||||
@@ -60,7 +60,7 @@ class LayerGroup {
|
||||
|
||||
let layers = options.layers;
|
||||
|
||||
BaseLayer.call(this, baseOptions);
|
||||
super(baseOptions);
|
||||
|
||||
/**
|
||||
* @private
|
||||
@@ -236,7 +236,5 @@ class LayerGroup {
|
||||
}
|
||||
}
|
||||
|
||||
inherits(LayerGroup, BaseLayer);
|
||||
|
||||
|
||||
export default LayerGroup;
|
||||
|
||||
Reference in New Issue
Block a user