Remove remaining use of inherits in src
This commit is contained in:
@@ -51,22 +51,22 @@ const GETFEATUREINFO_IMAGE_SIZE = [101, 101];
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* @classdesc
|
||||
* Source for WMS servers providing single, untiled images.
|
||||
*
|
||||
* @constructor
|
||||
* @fires ol/source/Image~ImageSourceEvent
|
||||
* @extends {module:ol/source/Image}
|
||||
* @param {module:ol/source/ImageWMS~Options=} [opt_options] ImageWMS options.
|
||||
* @api
|
||||
*/
|
||||
class ImageWMS {
|
||||
class ImageWMS extends ImageSource {
|
||||
/**
|
||||
* @classdesc
|
||||
* Source for WMS servers providing single, untiled images.
|
||||
*
|
||||
* @constructor
|
||||
* @fires ol/source/Image~ImageSourceEvent
|
||||
* @extends {module:ol/source/Image}
|
||||
* @param {module:ol/source/ImageWMS~Options=} [opt_options] ImageWMS options.
|
||||
* @api
|
||||
*/
|
||||
constructor(opt_options) {
|
||||
|
||||
const options = opt_options || {};
|
||||
|
||||
ImageSource.call(this, {
|
||||
super({
|
||||
attributions: options.attributions,
|
||||
projection: options.projection,
|
||||
resolutions: options.resolutions
|
||||
@@ -385,7 +385,5 @@ class ImageWMS {
|
||||
}
|
||||
}
|
||||
|
||||
inherits(ImageWMS, ImageSource);
|
||||
|
||||
|
||||
export default ImageWMS;
|
||||
|
||||
Reference in New Issue
Block a user