Remove remaining use of inherits in src
This commit is contained in:
+12
-16
@@ -45,26 +45,24 @@ import TileGrid from '../tilegrid/TileGrid.js';
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* @classdesc
|
||||
* Set the grid pattern for sources accessing WMTS tiled-image servers.
|
||||
*
|
||||
* @constructor
|
||||
* @extends {module:ol/tilegrid/TileGrid}
|
||||
* @param {module:ol/tilegrid/WMTS~Options} options WMTS options.
|
||||
* @struct
|
||||
* @api
|
||||
*/
|
||||
class WMTSTileGrid {
|
||||
class WMTSTileGrid extends TileGrid {
|
||||
/**
|
||||
* @classdesc
|
||||
* Set the grid pattern for sources accessing WMTS tiled-image servers.
|
||||
*
|
||||
* @constructor
|
||||
* @extends {module:ol/tilegrid/TileGrid}
|
||||
* @param {module:ol/tilegrid/WMTS~Options} options WMTS options.
|
||||
* @struct
|
||||
* @api
|
||||
*/
|
||||
constructor(options) {
|
||||
/**
|
||||
* @private
|
||||
* @type {!Array.<string>}
|
||||
*/
|
||||
this.matrixIds_ = options.matrixIds;
|
||||
// FIXME: should the matrixIds become optional?
|
||||
|
||||
TileGrid.call(this, {
|
||||
super({
|
||||
extent: options.extent,
|
||||
origin: options.origin,
|
||||
origins: options.origins,
|
||||
@@ -93,8 +91,6 @@ class WMTSTileGrid {
|
||||
}
|
||||
}
|
||||
|
||||
inherits(WMTSTileGrid, TileGrid);
|
||||
|
||||
|
||||
export default WMTSTileGrid;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user