Remove remaining use of inherits in src
This commit is contained in:
@@ -44,16 +44,16 @@ import {createXYZ, extentFromProjection} from '../tilegrid.js';
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* @classdesc
|
||||
* Layer source for tile data in TileJSON format.
|
||||
*
|
||||
* @constructor
|
||||
* @extends {module:ol/source/TileImage}
|
||||
* @param {module:ol/source/TileJSON~Options=} options TileJSON options.
|
||||
* @api
|
||||
*/
|
||||
class TileJSON {
|
||||
class TileJSON extends TileImage {
|
||||
/**
|
||||
* @classdesc
|
||||
* Layer source for tile data in TileJSON format.
|
||||
*
|
||||
* @constructor
|
||||
* @extends {module:ol/source/TileImage}
|
||||
* @param {module:ol/source/TileJSON~Options=} options TileJSON options.
|
||||
* @api
|
||||
*/
|
||||
constructor(options) {
|
||||
|
||||
/**
|
||||
@@ -62,7 +62,7 @@ class TileJSON {
|
||||
*/
|
||||
this.tileJSON_ = null;
|
||||
|
||||
TileImage.call(this, {
|
||||
super({
|
||||
attributions: options.attributions,
|
||||
cacheSize: options.cacheSize,
|
||||
crossOrigin: options.crossOrigin,
|
||||
@@ -182,7 +182,5 @@ class TileJSON {
|
||||
}
|
||||
}
|
||||
|
||||
inherits(TileJSON, TileImage);
|
||||
|
||||
|
||||
export default TileJSON;
|
||||
|
||||
Reference in New Issue
Block a user