Remove remaining use of inherits in src
This commit is contained in:
+12
-14
@@ -27,20 +27,20 @@ import {getKeyZXY} from '../tilecoord.js';
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* @classdesc
|
||||
* Base class for sources providing tiles divided into a tile grid over http.
|
||||
*
|
||||
* @constructor
|
||||
* @abstract
|
||||
* @fires module:ol/source/TileEvent
|
||||
* @extends {module:ol/source/Tile}
|
||||
* @param {module:ol/source/UrlTile~Options=} options Image tile options.
|
||||
*/
|
||||
class UrlTile {
|
||||
class UrlTile extends TileSource {
|
||||
/**
|
||||
* @classdesc
|
||||
* Base class for sources providing tiles divided into a tile grid over http.
|
||||
*
|
||||
* @constructor
|
||||
* @abstract
|
||||
* @fires module:ol/source/TileEvent
|
||||
* @extends {module:ol/source/Tile}
|
||||
* @param {module:ol/source/UrlTile~Options=} options Image tile options.
|
||||
*/
|
||||
constructor(options) {
|
||||
|
||||
TileSource.call(this, {
|
||||
super({
|
||||
attributions: options.attributions,
|
||||
cacheSize: options.cacheSize,
|
||||
extent: options.extent,
|
||||
@@ -205,8 +205,6 @@ class UrlTile {
|
||||
}
|
||||
}
|
||||
|
||||
inherits(UrlTile, TileSource);
|
||||
|
||||
|
||||
/**
|
||||
* @type {module:ol/Tile~UrlFunction|undefined}
|
||||
|
||||
Reference in New Issue
Block a user