Remove remaining use of inherits in src

This commit is contained in:
Tim Schaub
2018-07-17 23:43:10 -06:00
parent f6046c023c
commit 1a5cf52b61
63 changed files with 837 additions and 982 deletions
+12 -16
View File
@@ -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;