Manual class transform

This commit is contained in:
Tim Schaub
2018-07-16 17:09:50 -06:00
parent 7b4a73f3b9
commit f78d0d4cfa
96 changed files with 8112 additions and 7964 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -55,46 +55,47 @@ import TileGrid from '../tilegrid/TileGrid.js';
* @struct
* @api
*/
const WMTSTileGrid = function(options) {
/**
* @private
* @type {!Array.<string>}
*/
this.matrixIds_ = options.matrixIds;
// FIXME: should the matrixIds become optional?
class WMTSTileGrid {
constructor(options) {
/**
* @private
* @type {!Array.<string>}
*/
this.matrixIds_ = options.matrixIds;
// FIXME: should the matrixIds become optional?
TileGrid.call(this, {
extent: options.extent,
origin: options.origin,
origins: options.origins,
resolutions: options.resolutions,
tileSize: options.tileSize,
tileSizes: options.tileSizes,
sizes: options.sizes
});
};
TileGrid.call(this, {
extent: options.extent,
origin: options.origin,
origins: options.origins,
resolutions: options.resolutions,
tileSize: options.tileSize,
tileSizes: options.tileSizes,
sizes: options.sizes
});
}
/**
* @param {number} z Z.
* @return {string} MatrixId..
*/
getMatrixId(z) {
return this.matrixIds_[z];
}
/**
* Get the list of matrix identifiers.
* @return {Array.<string>} MatrixIds.
* @api
*/
getMatrixIds() {
return this.matrixIds_;
}
}
inherits(WMTSTileGrid, TileGrid);
/**
* @param {number} z Z.
* @return {string} MatrixId..
*/
WMTSTileGrid.prototype.getMatrixId = function(z) {
return this.matrixIds_[z];
};
/**
* Get the list of matrix identifiers.
* @return {Array.<string>} MatrixIds.
* @api
*/
WMTSTileGrid.prototype.getMatrixIds = function() {
return this.matrixIds_;
};
export default WMTSTileGrid;
/**