thank you. i have a 4k image i'm using right now. i'm trying to make it into a sort of map, so you can zoom in and really get into detail with marking out locations, etc
used deep zoom composer to export and got an XML file and some folders out of it which i tried using with the given HTML example found here ( https://openseadragon.github.io/docs/ ) but that didn't work at all so i'm not sure what i am doing wrong
Hi. This is my first post. Really enjoying working with openseadragon - appreciate the fine work. I'm trying to extend the selection plug-in drag funcitonality such that when I drag a clip against a border, it forces the underlying content to scroll. At the moment I'm detecting when selection border intersects with with viewport border and forcing a viewport.panTo() to position the article. Wonder if OSD already supports this or if someone else has done this? Maybe I should just be trapping/redirecting drag events?
If you sue the SVG overlay, for instance, you can do anything you can do normally in SVG, including grouping objects together and interactively changing their opacity.
The SVG overlay doesn't handle any of that for you... You'd need to do it yourself, or use a library like d3 or Snap. The overlay just binds that to OSD in a zooming fashion.
If you use the canvas overlay it's up to you to draw your overlays every frame, so that gives you complete power, but also makes you do all the work (except for keeping track of the zoom location).
Both of those options work well if you want the text to grow and shrink as you zoom. The built-in OSD overlays use just the regular HTML and they don't scale the HTML as you zoom (but they do move them as you pan).
@iangilman Will do. Starting to think I should have started by simply redirecting drag events when a selection border intersects with viewport border, rather than attempting the more cumbersome pan/delta method and all that comes with it. (It forces me to take responsiblity for drag direction changes, button release, etc.) Oh well... Again, thanks. If it works, I'll make it available.
@iangilman Don't want to bog you down with this... explicit panning does work well but forces me to deal with some default behaviors (e.g. panning the viewport causes the selection rect to pan with it - where I need the selection rect to remain in place having collided with a border, subsequently forcing the viewport to pan "beneath" it.)