From e69b15d33ed7ff6261503836d1adf93daf56c55b Mon Sep 17 00:00:00 2001 From: engsterhold <24939343+engsterhold@users.noreply.github.com> Date: Thu, 16 May 2019 16:10:58 +0200 Subject: [PATCH] Bandaid fix for change in Zoomify.js/CustomTile signature The recent addition of tilePixelRatio to the Zoomify.js/CustomTile constructor broke parameter binding in IIIF.js/IIIF. The fix mirrors the change in the Zoomify.js/Zoomify constructor --- src/ol/source/IIIF.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ol/source/IIIF.js b/src/ol/source/IIIF.js index 4152ed8bc8..e2f6eee31c 100644 --- a/src/ol/source/IIIF.js +++ b/src/ol/source/IIIF.js @@ -75,6 +75,7 @@ class IIIF extends TileImage { const width = size[0]; const height = size[1]; const tileSize = options.tileSize; + const tilePixelRatio = options.tilePixelRatio || 1; const format = options.format || 'jpg'; const quality = options.quality || (options.version == Versions.VERSION1 ? 'native' : 'default'); let resolutions = options.resolutions || []; @@ -259,8 +260,8 @@ class IIIF extends TileImage { } return baseUrl + regionParam + '/' + sizeParam + '/0/' + quality + '.' + format; }; - - const IiifTileClass = CustomTile.bind(null, tileGrid); + + const IiifTileClass = CustomTile.bind(null, tilePixelRatio, tileGrid); super({ attributions: options.attributions,