Add option to load TileJSON via XHR

This commit is contained in:
Petr Sloup
2016-01-05 13:10:50 +01:00
parent d9b89a8ebe
commit ffd9ace84e
2 changed files with 25 additions and 3 deletions

View File

@@ -5179,6 +5179,7 @@ olx.source.TileArcGISRestOptions.prototype.urls;
* reprojectionErrorThreshold: (number|undefined),
* tileLoadFunction: (ol.TileLoadFunctionType|undefined),
* url: string,
* useXhr: (boolean|undefined),
* wrapX: (boolean|undefined)}}
* @api
*/
@@ -5232,6 +5233,14 @@ olx.source.TileJSONOptions.prototype.tileLoadFunction;
olx.source.TileJSONOptions.prototype.url;
/**
* Use XmlHttpRequest to load the TileJSON. Default is `false`.
* @type {boolean|undefined}
* @api
*/
olx.source.TileJSONOptions.prototype.useXhr;
/**
* Whether to wrap the world horizontally. Default is `true`.
* @type {boolean|undefined}