From 37b1cca027b8c6089e6727345f5d43334af709ed Mon Sep 17 00:00:00 2001 From: Vincent Lecrubier Date: Sat, 12 Jan 2019 13:23:18 +0100 Subject: [PATCH 1/4] Add TilePixelRatio to Zoomify --- src/ol/source/Zoomify.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ol/source/Zoomify.js b/src/ol/source/Zoomify.js index dbe476a64a..1b7a192e67 100644 --- a/src/ol/source/Zoomify.js +++ b/src/ol/source/Zoomify.js @@ -244,6 +244,7 @@ class Zoomify extends TileImage { cacheSize: options.cacheSize, crossOrigin: options.crossOrigin, projection: options.projection, + tilePixelRatio: options.tilePixelRatio, reprojectionErrorThreshold: options.reprojectionErrorThreshold, tileClass: ZoomifyTileClass, tileGrid: tileGrid, From 4d54ad0dafa35b9ac19f38fddb28d1d6ca7cda4f Mon Sep 17 00:00:00 2001 From: Vincent Lecrubier Date: Sat, 12 Jan 2019 13:44:17 +0100 Subject: [PATCH 2/4] Update Zoomify.js --- src/ol/source/Zoomify.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ol/source/Zoomify.js b/src/ol/source/Zoomify.js index 1b7a192e67..ba4ab0186f 100644 --- a/src/ol/source/Zoomify.js +++ b/src/ol/source/Zoomify.js @@ -251,6 +251,10 @@ class Zoomify extends TileImage { tileUrlFunction: tileUrlFunction, transition: options.transition }); + + console.log("ollll1",this.tilePixelRatio_) + console.log("ollll2",this._tilePixelRatio) + console.log("ollll3",this.tilePixelRatio) } From 44942dffb56e64497a8ce250f9ac67d446266ea8 Mon Sep 17 00:00:00 2001 From: Vincent Lecrubier Date: Mon, 18 Feb 2019 10:04:02 +0000 Subject: [PATCH 3/4] Update Zoomify.js --- src/ol/source/Zoomify.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/ol/source/Zoomify.js b/src/ol/source/Zoomify.js index ba4ab0186f..1b7a192e67 100644 --- a/src/ol/source/Zoomify.js +++ b/src/ol/source/Zoomify.js @@ -251,10 +251,6 @@ class Zoomify extends TileImage { tileUrlFunction: tileUrlFunction, transition: options.transition }); - - console.log("ollll1",this.tilePixelRatio_) - console.log("ollll2",this._tilePixelRatio) - console.log("ollll3",this.tilePixelRatio) } From 900adaaffb51aa975d25a1c7bf3010f0248e01fa Mon Sep 17 00:00:00 2001 From: Vincent Lecrubier Date: Wed, 20 Feb 2019 22:40:24 +0000 Subject: [PATCH 4/4] Update Zoomify.js --- src/ol/source/Zoomify.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ol/source/Zoomify.js b/src/ol/source/Zoomify.js index 1b7a192e67..cab8374540 100644 --- a/src/ol/source/Zoomify.js +++ b/src/ol/source/Zoomify.js @@ -87,6 +87,7 @@ export class CustomTile extends ImageTile { * you must provide a `crossOrigin` value you want to access pixel data with the Canvas renderer. * See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail. * @property {import("../proj.js").ProjectionLike} [projection] Projection. + * @property {number} [tilePixelRatio] The pixel ratio used by the tile service. For example, if the tile service advertizes 256px by 256px tiles but actually sends 512px by 512px images (for retina/hidpi devices) then `tilePixelRatio` should be set to `2` * @property {number} [reprojectionErrorThreshold=0.5] Maximum allowed reprojection error (in pixels). * Higher values can increase reprojection performance, but decrease precision. * @property {string} [url] URL template or base URL of the Zoomify service.