These are chat archives for openseadragon/openseadragon

10th
Mar 2015
Tyler Mobley
@mobleyt
Mar 10 2015 20:43
Is there an example somewhere of applying unique overlays per page in a tile sequence? Using the html div overlay example from the docs, I can get it to work when I play overlays outside of tileSources, but when I place overlays within each tileSources object, no such luck. I assume I'm taking the wrong approach?
Ian Gilman
@iangilman
Mar 10 2015 21:20
@jedateach You might ping @msalsbery again :)
@mobleyt Interesting...that should work. Do you have an example?
Mark Salsbery
@msalsbery
Mar 10 2015 21:34
:)
Mark Salsbery
@msalsbery
Mar 10 2015 21:46
@jedateach The biggest thing I can say about that plugin is I haven’t had time to finish porting it yet! :) The basic idea, however, is code to interface with the viewer (elements to host annotations and event handling) combined with a generic interface for annotations. Annotations get event callbacks and can query the “host” for info needed to render themselves, and are self-contained objects that can really be anything. That’s the basics. On top of that, the code I’m porting has “modes" like create, edit, etc. which help dictate the sequence of callback calls to annotation objects and annotations can decide how to render themselves (for example, grapples in edit mode). That portion is a bit opinionated (shaped for the medical imaging work it’s used on) so my biggest delay has been thinking about how to abstract that out a bit to make sure it’s flexible for other uses. That’s a quick overview.
Tyler Mobley
@mobleyt
Mar 10 2015 22:29
@iangilman Scratch that! When I pasted my code sample in, I finally noticed a few syntax errors on my part. I'll sort those out first and see what happens.
Ian Gilman
@iangilman
Mar 10 2015 22:39
@mobleyt :)