Allow tileLoadFunction override for ol.source.TileWMS
This commit is contained in:
@@ -579,6 +579,8 @@
|
||||
* @property {ol.tilegrid.TileGrid|undefined} tileGrid Tile grid.
|
||||
* @property {number|undefined} maxZoom Maximum zoom.
|
||||
* @property {ol.proj.ProjectionLike} projection Projection.
|
||||
* @property {ol.TileLoadFunctionType|undefined} tileLoadFunction Optional
|
||||
* function to load a tile given a URL.
|
||||
* @property {string|undefined} url WMS service URL.
|
||||
* @property {Array.<string>|undefined} urls WMS service urls. Use this instead
|
||||
* of `url` when the WMS supports multiple urls for GetMap requests.
|
||||
|
||||
@@ -98,6 +98,7 @@ ol.source.TileWMS = function(options) {
|
||||
tileGrid: options.tileGrid,
|
||||
opaque: !transparent,
|
||||
projection: options.projection,
|
||||
tileLoadFunction: options.tileLoadFunction,
|
||||
tileUrlFunction: ol.TileUrlFunction.withTileCoordTransform(
|
||||
tileCoordTransform, tileUrlFunction)
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user