Skip to content

Commit

Permalink
ol.source.WMTS now passes tileClass option to ol.source.TileImage
Browse files Browse the repository at this point in the history
The constructor for ol.source.TileImage accepts an option for the tileClass,
but ol.source.WMTS does not pass this to the parent. This pull request adds
that in.
  • Loading branch information
mike-mcgann committed Oct 15, 2014
1 parent 74fd55a commit 5a2c206
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
17 changes: 15 additions & 2 deletions externs/olx.js
Original file line number Diff line number Diff line change
Expand Up @@ -3599,7 +3599,7 @@ olx.source.TileImageOptions.prototype.state;


/**
* tile class
* 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}
Expand Down Expand Up @@ -4996,7 +4996,10 @@ olx.source.StaticVectorOptions.prototype.urls;
* url: (string|undefined),
* maxZoom: (number|undefined),
* tileLoadFunction: (ol.TileLoadFunctionType|undefined),
* urls: (Array.<string>|undefined)}}
* urls: (Array.<string>|undefined),
* tileClass: (function(new: ol.ImageTile, ol.TileCoord,
* ol.TileState, string, ?string,
* ol.TileLoadFunctionType)|undefined)}}
* @api
*/
olx.source.WMTSOptions;
Expand Down Expand Up @@ -5066,6 +5069,16 @@ olx.source.WMTSOptions.prototype.layer;
olx.source.WMTSOptions.prototype.style;


/**
* 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.WMTSOptions.prototype.tileClass;


/**
* The pixel ratio used by the tile service. For example, if the tile
* service advertizes 256px by 256px tiles but actually sends 512px
Expand Down
1 change: 1 addition & 0 deletions src/ol/source/wmtssource.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ ol.source.WMTS = function(options) {
crossOrigin: options.crossOrigin,
logo: options.logo,
projection: options.projection,
tileClass: options.tileClass,
tileGrid: tileGrid,
tileLoadFunction: options.tileLoadFunction,
tilePixelRatio: options.tilePixelRatio,
Expand Down

0 comments on commit 5a2c206

Please sign in to comment.