Correct type declaration of ol.TileUrlFunction

This commit is contained in:
Tom Payne
2012-07-26 01:36:51 +02:00
parent 69fabce0c0
commit f193a94847
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -6,7 +6,7 @@ goog.require('ol.TileCoord');
/** /**
* @typedef {function(ol.TileCoord): string|undefined} * @typedef {function(ol.TileCoord): (string|undefined)}
*/ */
ol.TileUrlFunctionType; ol.TileUrlFunctionType;