cbeer/openseadragon-rails

Support for thumbnails in Reference Strip?

Opened this issue · 0 comments

Hello all,

When using the showReferenceStrip option, I don't see thumbnails being rendered in the UI for any image beyond the first one. With some styling the strip indeed appears and the regions are clickable; they advance to the correct image in the viewer. The prev/next nav links also work correctly. But only the first image in the strip gets a <canvas> with an image within the <div id="referencestrip-...-..."> element.

The openseadragon_picture_tag renders markup like this:

<picture data-openseadragon="{&quot;sequenceMode&quot;:true,&quot;showReferenceStrip&quot;:true,&quot;preserveViewport&quot;:true,&quot;visibilityRatio&quot;:1}">
    <source class="osd-image" media="openseadragon" src="path1/to/info.json" />
    <source class="osd-image" media="openseadragon" src="path2/to/info.json" />
    <source class="osd-image" media="openseadragon" src="path3/to/info.json" />
</picture>

I'm not sure if this is a known bug or if it's specific to my use of the gem. Can you all advise? Many thanks...