These are chat archives for openseadragon/openseadragon

30th
Jun 2015
VoidVolker
@VoidVolker
Jun 30 2015 14:34
argh! wtf? I added to my map moving animation - and above some time map moved away from screen, why this bug exist? there no modulo for map position calculation, also, no modulo for overlays positio
left: -41234px;
Ian Gilman
@iangilman
Jun 30 2015 16:04
@VoidVolker I believe that's openseadragon/openseadragon#555
It's true, OSD's wrap feature isn't as robust as it could be. We'd love your help making it more solid!
Antoine Vandecreme
@avandecreme
Jun 30 2015 17:30
Should that become a plugin as well? I don't know how it is implemented currently but with multi image, that could just be displaying the same image multiple times.
Ian Gilman
@iangilman
Jun 30 2015 17:32
Hmm...seems like a common enough case to have in the core. As for doing it with multi-image, I suppose we could, but since it's supposed to be theoretically infinite, it seems reasonable to special case rather than try to manage multiple virtual copies.
Now that you mention it, though, I'm not sure exactly how wrap around and multi-image interact with each other. Could be funky
VoidVolker
@VoidVolker
Jun 30 2015 17:33
just render same image
Ian Gilman
@iangilman
Jun 30 2015 17:33
I think the basic functionality of wrap around is working fine, it's just things like #555 and the fact that we don't wrap overlays.
VoidVolker
@VoidVolker
Jun 30 2015 17:33
if screen.width < img.width -> render 2 or more times
yes, also wrap overlays
Ian Gilman
@iangilman
Jun 30 2015 17:34
Seems like a neat feature.
I seem to recall Leaflet doesn't wrap overlays, but I could be mistaken.
VoidVolker
@VoidVolker
Jun 30 2015 17:35
leaflet not have this problem
it teleport overleay item
Ian Gilman
@iangilman
Jun 30 2015 17:36
Excellent
Btw, what are you displaying?
VoidVolker
@VoidVolker
Jun 30 2015 17:36
when image start in the center of the screen - in one side there are overlays, in other - not
I have next case: I have long image with items (15-20k px * 3-5k px), they need hover effect ( ~100 items, in html items it give
Ian Gilman
@iangilman
Jun 30 2015 17:37
In OSD?
VoidVolker
@VoidVolker
Jun 30 2015 17:37
big CPU load
leaflet really very good and nice docs have
but it have own problems
wrap algorithm not good in leaflet - it have some lag in animation of scroll/zoom while
OSD have better perfomance with render to canvas
Ian Gilman
@iangilman
Jun 30 2015 17:41
Interesting
Are you doing maps? Panoramas? Something else?
VoidVolker
@VoidVolker
Jun 30 2015 17:41
else
Ian Gilman
@iangilman
Jun 30 2015 17:41
What kinds of things are you overlaying?
VoidVolker
@VoidVolker
Jun 30 2015 17:42
just big image of small items (yes, crazy, but it wish of client to make prototype)
Ian Gilman
@iangilman
Jun 30 2015 17:43
Cool
VoidVolker
@VoidVolker
Jun 30 2015 17:43
and leaflet teleport all overlay in one step and give in 'start <> end' only part of overlays
Ian Gilman
@iangilman
Jun 30 2015 17:43
You could potentially use multi-image (though I don't know that that works with wrap around)
VoidVolker
@VoidVolker
Jun 30 2015 17:44
I wish to develop own engine for it - background + smal items pictures
Ian Gilman
@iangilman
Jun 30 2015 17:44
Yup, our overlays could use improvement. You could file an issue and see if anyone is interested in taking on the task, or you could dig into the code.
VoidVolker
@VoidVolker
Jun 30 2015 17:44
it will be more comfortable to worl
Ian Gilman
@iangilman
Jun 30 2015 17:45
Take a look at the examples listed on this page: http://openseadragon.github.io/examples/multi-image/
VoidVolker
@VoidVolker
Jun 30 2015 17:45
already
Ian Gilman
@iangilman
Jun 30 2015 17:45
Cool
VoidVolker
@VoidVolker
Jun 30 2015 17:46
btw, why when I add overlay it no added to OSD viewer?
..viewer.overlays -> 0
Ian Gilman
@iangilman
Jun 30 2015 17:47
Active overlays are stored in a different property; that property is just for the initial creation.
VoidVolker
@VoidVolker
Jun 30 2015 17:48
I have idea to use one overlay for hover and move it over items with cursor
but, I can't find way how to make OSD move it with map, while I change position and size of it
because OSD move map not lineary
and when map moving - overlay move in wrong way, over items
Ian Gilman
@iangilman
Jun 30 2015 17:51
How are you moving the overlay? Just using CSS?
VoidVolker
@VoidVolker
Jun 30 2015 17:52
yes, I tryed onmouse and on-drawed events
also, I calculate each item position an convert to 0-1 coordinates and ise pointFromPixel and pixelFromPoint to find cursor position in 0-1 coords
when map not moving - all wonderfull
Ian Gilman
@iangilman
Jun 30 2015 17:54
Yeah, you'll want to actually change the internal info about where the overlay is. Changing the CSS will just confuse OSD.
VoidVolker
@VoidVolker
Jun 30 2015 17:54
when moving - hover border crossing items, but I want to teleport it to item
I used wrapper
OSD overlay - wrapper
Ian Gilman
@iangilman
Jun 30 2015 17:55
viewer.updateOverlay(myOverlayElement, newLocation, newPlacement)
VoidVolker
@VoidVolker
Jun 30 2015 17:55
inside wrapper - my div
wrapper position 0,0,1,1
Ian Gilman
@iangilman
Jun 30 2015 17:57
updateOverlay should work
VoidVolker
@VoidVolker
Jun 30 2015 17:57
what is myOverlayElement?
from docs: viewer.updateOverlay(location, placement)
html element?
Ian Gilman
@iangilman
Jun 30 2015 17:58
Yup...just noticed that...fixing the docs
Yes, HTML element or ID
VoidVolker
@VoidVolker
Jun 30 2015 17:59
thanks, i'll try
Grant Echols
@gechols
Jun 30 2015 20:31
So having discovered the wonder of the multi-image support in the World object, we have come up with a new use case that would use the viewer to view 50,000+ images (primarily as small thumbnails). Our user model doesn't need to be able to zoom these images necessarily - instead we intend to 'select' a single image for detail viewing with the full zoom capabilities of the image viewer and such. I would like to get some feedback on the # of images the World object is likely to handle.
Ian Gilman
@iangilman
Jun 30 2015 20:32
Yow! :)
We would love to be able to support that many, and maybe we do, but we've only tested up to 500...
One thing you need to make sure is you pass the info for those images directly rather than as links to, say, DZI files. That way you're not trying to load 50,000 DZI files all at once.
Even so, you would be loading 50,000 thumbnails. This is where the DZC (Deep Zoom Collection) file format comes in handy...see #67
VoidVolker
@VoidVolker
Jun 30 2015 20:35
@iangilman I tested - it works, big thanks =)
Ian Gilman
@iangilman
Jun 30 2015 20:36
Basically DZC includes image maps for all the thumbnails, so you can load just one image from the server and handle hundreds of items on the screen
@VoidVolker Excellent :)
@gechols So anyway, we definitely want to support that kind of scenario, but there are probably some rough patches. If you venture that way, you'll be breaking new ground. I'm happy to help along the way, though
VoidVolker
@VoidVolker
Jun 30 2015 20:43
how I can add hidden overlay?
when I add via viewer.addOverlay and after hiding overlay - OSD show overlay again
Ian Gilman
@iangilman
Jun 30 2015 20:45
@VoidVolker A fix for that just landed on master: #668
VoidVolker
@VoidVolker
Jun 30 2015 20:47
o, cool, nice, thanks
Conner Wingard
@ConnerMan
Jun 30 2015 21:58
Hey @iangilman I just updated #673 in response to your feedback. Think we are almost there. Left some questions :)
Ian Gilman
@iangilman
Jun 30 2015 22:07
Excellent, thanks :)