Allow tileLoadFunction override for ol.source.OSM
This commit is contained in:
@@ -506,6 +506,8 @@
|
|||||||
* @property {ol.Attribution|undefined} attribution Attribution.
|
* @property {ol.Attribution|undefined} attribution Attribution.
|
||||||
* @property {Array.<ol.Attribution>|undefined} attributions Attributions.
|
* @property {Array.<ol.Attribution>|undefined} attributions Attributions.
|
||||||
* @property {number|undefined} maxZoom Max zoom.
|
* @property {number|undefined} maxZoom Max zoom.
|
||||||
|
* @property {ol.TileLoadFunctionType|undefined} tileLoadFunction Optional
|
||||||
|
* function to load a tile given a URL.
|
||||||
* @property {string|undefined} url URL.
|
* @property {string|undefined} url URL.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ ol.source.OSM = function(opt_options) {
|
|||||||
crossOrigin: 'anonymous',
|
crossOrigin: 'anonymous',
|
||||||
opaque: true,
|
opaque: true,
|
||||||
maxZoom: options.maxZoom,
|
maxZoom: options.maxZoom,
|
||||||
|
tileLoadFunction: options.tileLoadFunction,
|
||||||
url: url
|
url: url
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user