Allow tileLoadFunction override for ol.source.TileJSON

This commit is contained in:
Frederic Junod
2013-09-23 13:40:48 +02:00
parent 5a99adfc68
commit 331005468c
2 changed files with 4 additions and 1 deletions

View File

@@ -559,6 +559,8 @@
* @typedef {Object} ol.source.TileJSONOptions
* @property {null|string|undefined} crossOrigin crossOriin setting for image
* requests.
* @property {ol.TileLoadFunctionType|undefined} tileLoadFunction Optional
* function to load a tile given a URL.
* @property {string} url URL.
*/

View File

@@ -45,7 +45,8 @@ ol.source.TileJSON = function(options) {
goog.base(this, {
crossOrigin: options.crossOrigin,
projection: ol.proj.get('EPSG:3857')
projection: ol.proj.get('EPSG:3857'),
tileLoadFunction: options.tileLoadFunction
});
/**