Enable use of custom XHR loader for TileVector sources

This commit is contained in:
Björn Harrtell
2015-06-22 10:11:48 +02:00
parent 54186d7893
commit ceafa88dc8
3 changed files with 46 additions and 11 deletions

View File

@@ -1,4 +1,5 @@
goog.provide('ol.TileLoadFunctionType');
goog.provide('ol.TileVectorLoadFunctionType');
/**
@@ -9,3 +10,13 @@ goog.provide('ol.TileLoadFunctionType');
* @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;