Use path type instead of ol.tilegrid.TileGrid
This commit is contained in:
@@ -49,7 +49,7 @@ const TileSource = function(options) {
|
||||
|
||||
/**
|
||||
* @protected
|
||||
* @type {ol.tilegrid.TileGrid}
|
||||
* @type {module:ol/tilegrid/TileGrid~TileGrid}
|
||||
*/
|
||||
this.tileGrid = options.tileGrid !== undefined ? options.tileGrid : null;
|
||||
|
||||
@@ -202,7 +202,7 @@ TileSource.prototype.getTile = function(z, x, y, pixelRatio, projection) {};
|
||||
|
||||
/**
|
||||
* Return the tile grid of the tile source.
|
||||
* @return {ol.tilegrid.TileGrid} Tile grid.
|
||||
* @return {module:ol/tilegrid/TileGrid~TileGrid} Tile grid.
|
||||
* @api
|
||||
*/
|
||||
TileSource.prototype.getTileGrid = function() {
|
||||
@@ -212,7 +212,7 @@ TileSource.prototype.getTileGrid = function() {
|
||||
|
||||
/**
|
||||
* @param {module:ol/proj/Projection~Projection} projection Projection.
|
||||
* @return {!ol.tilegrid.TileGrid} Tile grid.
|
||||
* @return {!module:ol/tilegrid/TileGrid~TileGrid} Tile grid.
|
||||
*/
|
||||
TileSource.prototype.getTileGridForProjection = function(projection) {
|
||||
if (!this.tileGrid) {
|
||||
|
||||
@@ -67,7 +67,7 @@ const TileImage = function(options) {
|
||||
|
||||
/**
|
||||
* @protected
|
||||
* @type {!Object.<string, ol.tilegrid.TileGrid>}
|
||||
* @type {!Object.<string, module:ol/tilegrid/TileGrid~TileGrid>}
|
||||
*/
|
||||
this.tileGridForProjection = {};
|
||||
|
||||
@@ -175,7 +175,7 @@ TileImage.prototype.getTileGridForProjection = function(projection) {
|
||||
if (!(projKey in this.tileGridForProjection)) {
|
||||
this.tileGridForProjection[projKey] = getTileGridForProjection(projection);
|
||||
}
|
||||
return /** @type {!ol.tilegrid.TileGrid} */ (this.tileGridForProjection[projKey]);
|
||||
return /** @type {!module:ol/tilegrid/TileGrid~TileGrid} */ (this.tileGridForProjection[projKey]);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -344,7 +344,7 @@ TileImage.prototype.setRenderReprojectionEdges = function(render) {
|
||||
* for optimization reasons (custom tile size, resolutions, ...).
|
||||
*
|
||||
* @param {module:ol/proj~ProjectionLike} projection Projection.
|
||||
* @param {ol.tilegrid.TileGrid} tilegrid Tile grid to use for the projection.
|
||||
* @param {module:ol/tilegrid/TileGrid~TileGrid} tilegrid Tile grid to use for the projection.
|
||||
* @api
|
||||
*/
|
||||
TileImage.prototype.setTileGridForProjection = function(projection, tilegrid) {
|
||||
|
||||
@@ -81,7 +81,7 @@ const VectorTileSource = function(options) {
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {Object.<string,ol.tilegrid.TileGrid>}
|
||||
* @type {Object.<string, module:ol/tilegrid/TileGrid~TileGrid>}
|
||||
*/
|
||||
this.tileGrids_ = {};
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ const TierSizeCalculation = {
|
||||
/**
|
||||
* @constructor
|
||||
* @extends {ol.ImageTile}
|
||||
* @param {ol.tilegrid.TileGrid} tileGrid TileGrid that the tile belongs to.
|
||||
* @param {module:ol/tilegrid/TileGrid~TileGrid} tileGrid TileGrid that the tile belongs to.
|
||||
* @param {module:ol/tilecoord~TileCoord} tileCoord Tile coordinate.
|
||||
* @param {ol.TileState} state State.
|
||||
* @param {string} src Image source URI.
|
||||
|
||||
Reference in New Issue
Block a user