Correct type declaration of ol.TileUrlFunction
This commit is contained in:
@@ -85,7 +85,7 @@ ol.TileStore.prototype.getTile = function(tileCoord) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {ol.TileCoord} tileCoord Tile coordinate.
|
* @param {ol.TileCoord} tileCoord Tile coordinate.
|
||||||
* @return {string} Tile coord URL.
|
* @return {string|undefined} Tile URL.
|
||||||
*/
|
*/
|
||||||
ol.TileStore.prototype.getTileCoordUrl = function(tileCoord) {
|
ol.TileStore.prototype.getTileCoordUrl = function(tileCoord) {
|
||||||
return this.tileUrlFunction_(tileCoord);
|
return this.tileUrlFunction_(tileCoord);
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ goog.require('ol.TileCoord');
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @typedef {function(ol.TileCoord): string|undefined}
|
* @typedef {function(ol.TileCoord): (string|undefined)}
|
||||||
*/
|
*/
|
||||||
ol.TileUrlFunctionType;
|
ol.TileUrlFunctionType;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user