diff --git a/src/imagetilesource.js b/src/imagetilesource.js index 417243c6..0bf26844 100644 --- a/src/imagetilesource.js +++ b/src/imagetilesource.js @@ -50,6 +50,7 @@ * @extends OpenSeadragon.TileSource * @param {Object} options Options object. * @param {String} options.url URL of the image + * @param {String} options.referenceStripThumbnailUrl URL of the dedicated thumbnail image * @param {Boolean} [options.buildPyramid=true] If set to true (default), a * pyramid will be built internally to provide a better downsampling. * @param {String|Boolean} [options.crossOriginPolicy=false] Valid values are diff --git a/src/referencestrip.js b/src/referencestrip.js index 69fa8e29..e1074572 100644 --- a/src/referencestrip.js +++ b/src/referencestrip.js @@ -428,9 +428,19 @@ function loadPanels( strip, viewerSize, scroll ) { for ( i = activePanelsStart; i < activePanelsEnd && i < strip.panels.length; i++ ) { element = strip.panels[i]; if ( !element.activePanel ) { + var miniTileSource; + var originalTileSource = strip.viewer.tileSources[i]; + if (originalTileSource.referenceStripThumbnailUrl) { + miniTileSource = { + type: 'image', + url: originalTileSource.referenceStripThumbnailUrl + }; + } else { + miniTileSource = originalTileSource; + } miniViewer = new $.Viewer( { id: element.id, - tileSources: [strip.viewer.tileSources[i]], + tileSources: [miniTileSource], element: element, navigatorSizeRatio: strip.sizeRatio, showNavigator: false,