Merge pull request #6387 from ahocevar/zoomify-projection

Add projection option to ol.source.Zoomify
This commit is contained in:
Andreas Hocevar
2017-01-20 17:00:33 +01:00
committed by GitHub
2 changed files with 10 additions and 0 deletions

View File

@@ -6695,6 +6695,7 @@ olx.source.CartoDBOptions.prototype.account;
* cacheSize: (number|undefined),
* crossOrigin: (null|string|undefined),
* logo: (string|olx.LogoOptions|undefined),
* projection: (ol.ProjectionLike|undefined),
* reprojectionErrorThreshold: (number|undefined),
* url: !string,
* tierSizeCalculation: (string|undefined),
@@ -6739,6 +6740,14 @@ olx.source.ZoomifyOptions.prototype.crossOrigin;
olx.source.ZoomifyOptions.prototype.logo;
/**
* Projection.
* @type {ol.ProjectionLike|undefined}
* @api
*/
olx.source.ZoomifyOptions.prototype.projection;
/**
* Maximum allowed reprojection error (in pixels). Default is `0.5`.
* Higher values can increase reprojection performance, but decrease precision.

View File

@@ -113,6 +113,7 @@ ol.source.Zoomify = function(opt_options) {
cacheSize: options.cacheSize,
crossOrigin: options.crossOrigin,
logo: options.logo,
projection: options.projection,
reprojectionErrorThreshold: options.reprojectionErrorThreshold,
tileClass: ol.source.Zoomify.Tile_,
tileGrid: tileGrid,