Merge pull request #4720 from ahocevar/tileloadfunction-docs

Improve tileLoadFunction docs
This commit is contained in:
Andreas Hocevar
2016-01-27 10:32:12 +01:00
2 changed files with 69 additions and 24 deletions
+2 -13
View File
@@ -1,22 +1,11 @@
goog.provide('ol.TileLoadFunctionType');
goog.provide('ol.TileVectorLoadFunctionType');
/**
* A function that takes an {@link ol.Tile} for the tile and a
* `{string}` for the url as arguments.
* A function that takes an {@link ol.Tile} for the tile and a `{string}` for
* the url as arguments.
*
* @typedef {function(ol.Tile, string)}
* @api
*/
ol.TileLoadFunctionType;
/**
* A function that is called with a tile url for the features to load and
* a callback that takes the loaded features as argument.
*
* @typedef {function(string, function(Array.<ol.Feature>))}
* @api
*/
ol.TileVectorLoadFunctionType;