These are chat archives for openseadragon/openseadragon

8th
Jul 2015
Grant Echols
@gechols
Jul 08 2015 19:36
The timeout error I was having loading tiles has been resolved with the imageLoaderLimit. It was happening later on like @iangilman mentioned. The reason there's no errors in the Net panel is that the tile actually loads - it just takes too long so the timeout occurs. This is the reason I put in the PR for adding the errorMsg to the tile loading problem.
I'll make a note about the image.xml loading optimization - is there already an entry point in OSD that will take a big list of image.xml contents?
Grant Echols
@gechols
Jul 08 2015 19:49
So is there a convenient way to switch the way the mouse scroll wheel is handled and have it pan the image(s) up and down instead of zooming in and out? With a large number of images we are going to be panning up and down instead of zooming. Given its a canvas its a little tricky to switch modes so I figure I'll need some cooperation from the OSD code.
Grant Echols
@gechols
Jul 08 2015 20:01
OK - please ignore my lazy questions. Looking in the source I find a nice 'canvas-scroll' event. Thanks to those who planned ahead so well!
Ian Gilman
@iangilman
Jul 08 2015 20:29
@gechols :)
Regarding giving OSD a big list of image.xml contents, you'll have to digest the data and then pass it in to addTiledImage as the tileSource parameter.
(or when you create the viewer, in the tileSources option)
Anyway, it just needs to be an object with the data you need. An XML string won't do it, and a URL would mean the loading we're trying to avoid. Make sense?
Being able to take an XML string seems like a nice feature...no one's done it yet though
Grant Echols
@gechols
Jul 08 2015 20:42
K - I'll look at incorporating those. Thanks!
Ian Gilman
@iangilman
Jul 08 2015 20:43
:)
Grant Echols
@gechols
Jul 08 2015 20:43
@iangilman - is there a convenient way to determine if an image has been panned into the canvas area? I'm trying to detect when the last 'loaded' image gets panned into view so I can start loading more of our 1000s of images
Ian Gilman
@iangilman
Jul 08 2015 20:57
@gechols not a convenient one...you'll have to write your own. Watch pan and zoom events and compare viewer.viewport.getBounds() with all of the tiled images' .getBounds()
Grant Echols
@gechols
Jul 08 2015 21:07
I think I can work with that - I only have to check the last image so I'll see if I can figure out the math.
Ian Gilman
@iangilman
Jul 08 2015 21:10
Cool :)
The m2 demo has that kind of code as well
It also has a dynamic switch from using scroll wheel for scroll vs. using it for zoom