These are chat archives for openseadragon/openseadragon

7th
Mar 2016
Jeremy Shipman
@jedateach
Mar 07 2016 04:56
is there a plugin/feature for hyperlinking to part of an image?
foobarable
@foobarable
Mar 07 2016 08:02
@jedateach I'm also interested in this kind of feature but I think I will have to implement it by myself
sickrandir
@sickrandir
Mar 07 2016 15:45
@iangilman this is the most "vanilla" example I could come up with. OSD is included has a static height of 600px and is included in a very simple bootstrap template. The problem seems to be that at the first click on OSD the page scrolls. This is some strange, unwanted behaviour that happens only in google chrome. Not in Safari or Firefox. It doesn't seem to be related to the full height classes applied to OSD as you previously thought.
Antoine Vandecreme
@avandecreme
Mar 07 2016 16:04
@jedateach I have done that before but not in a sharable form. The idea is to use URL parameters to specify x,y,width,height of the region you want to display. When these parameters are present, you can use viewport.fitBounds() to zoom and pan to that location.
You can retrieve the parameters with OpenSeadragon.getUrlParameter
Ian Gilman
@iangilman
Mar 07 2016 17:13
@sickrandir I see! Now I remember this issue: openseadragon/openseadragon#805
The pull request has landed but it hasn't been released, so you'll have to grab the latest from master. Then you include tabIndex: '' in your options. That should fix your issue.
I'm starting to think maybe this needs to be the default though...such strange behavior from Chrome.
David Rogers
@dwrogers
Mar 07 2016 19:41
This message was deleted
David Rogers
@dwrogers
Mar 07 2016 23:30
Is anyone else looking into how overlays rotate? It seems to me that the current behavior for overlays with scales===true is not all that useful. Am I missing some use case? (I am just testing with the test/demo/overlay.html page, so I'm just seeing the effect on a <div >.
David Rogers
@dwrogers
Mar 07 2016 23:45
@avandecreme @altert WRT overlay rotation, it seems to me that the current behavior for non-point overlays (with scales===true) is not all that useful. Am I missing some use case? (I am just testing with the test/demo/overlay.html page, so I'm just seeing the effect on a div element) . I think it would make sense to have these overlays rotate with the viewport.