Merge pull request #2838 from mike-mcgann/wmts-tile-class

ol.source.WMTS now passes tileClass option to ol.source.TileImage
This commit is contained in:
Éric Lemoine
2014-10-15 15:33:12 +02:00
2 changed files with 16 additions and 2 deletions
+15 -2
View File
@@ -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, * @type {function(new: ol.ImageTile, ol.TileCoord,
* ol.TileState, string, ?string, * ol.TileState, string, ?string,
* ol.TileLoadFunctionType)|undefined} * ol.TileLoadFunctionType)|undefined}
@@ -4996,7 +4996,10 @@ olx.source.StaticVectorOptions.prototype.urls;
* url: (string|undefined), * url: (string|undefined),
* maxZoom: (number|undefined), * maxZoom: (number|undefined),
* tileLoadFunction: (ol.TileLoadFunctionType|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 * @api
*/ */
olx.source.WMTSOptions; olx.source.WMTSOptions;
@@ -5066,6 +5069,16 @@ olx.source.WMTSOptions.prototype.layer;
olx.source.WMTSOptions.prototype.style; 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 * The pixel ratio used by the tile service. For example, if the tile
* service advertizes 256px by 256px tiles but actually sends 512px * service advertizes 256px by 256px tiles but actually sends 512px
+1
View File
@@ -181,6 +181,7 @@ ol.source.WMTS = function(options) {
crossOrigin: options.crossOrigin, crossOrigin: options.crossOrigin,
logo: options.logo, logo: options.logo,
projection: options.projection, projection: options.projection,
tileClass: options.tileClass,
tileGrid: tileGrid, tileGrid: tileGrid,
tileLoadFunction: options.tileLoadFunction, tileLoadFunction: options.tileLoadFunction,
tilePixelRatio: options.tilePixelRatio, tilePixelRatio: options.tilePixelRatio,