Merge pull request #6980 from ZachTRice/tilewms-tileclass

Added tileClass to TileWMS
This commit is contained in:
Andreas Hocevar
2017-07-24 10:59:34 +02:00
committed by GitHub
2 changed files with 14 additions and 0 deletions

View File

@@ -6155,6 +6155,9 @@ olx.source.TileJSONOptions.prototype.wrapX;
* gutter: (number|undefined),
* hidpi: (boolean|undefined),
* logo: (string|olx.LogoOptions|undefined),
* tileClass: (function(new: ol.ImageTile, ol.TileCoord,
* ol.TileState, string, ?string,
* ol.TileLoadFunctionType)|undefined),
* tileGrid: (ol.tilegrid.TileGrid|undefined),
* projection: ol.ProjectionLike,
* reprojectionErrorThreshold: (number|undefined),
@@ -6237,6 +6240,16 @@ olx.source.TileWMSOptions.prototype.hidpi;
olx.source.TileWMSOptions.prototype.logo;
/**
* Class used to instantiate image tiles. Default is {@link ol.ImageTile}.
* @type {function(new: ol.ImageTile, ol.TileCoord,
* ol.TileState, string, ?string,
* ol.TileLoadFunctionType)|undefined}
* @api
*/
olx.source.TileWMSOptions.prototype.tileClass;
/**
* Tile grid. Base this on the resolutions, tilesize and extent supported by the
* server.

View File

@@ -42,6 +42,7 @@ ol.source.TileWMS = function(opt_options) {
opaque: !transparent,
projection: options.projection,
reprojectionErrorThreshold: options.reprojectionErrorThreshold,
tileClass: options.tileClass,
tileGrid: options.tileGrid,
tileLoadFunction: options.tileLoadFunction,
url: options.url,