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