These are chat archives for openseadragon/openseadragon

15th
Jun 2016
sickrandir
@sickrandir
Jun 15 2016 17:24
Hi guys, I have a problem with runtime overlays.
At this address: http://52.51.111.26:9000/#/configurator there is an example based on openseadragon. The red icons are overlays added with the method 'addOverlay(elementId, location)' and that works as expected.
If you press the "BACK" button the controller opens another view, keeping the same instance of the viewer and calling the method 'open' passing different tilesources. Then the controller waits for the open event and tries to add back the overlays using the same method but this time it doesn't work. I'm quite at loss on this one. The only thing different that I see from the examples in the doc is that the html elements to which I attach the overlay are binded by angularjs and so are not removed with the removal of the overlays.
Ian Gilman
@iangilman
Jun 15 2016 17:38
@sickrandir How about creating your overlay element fresh each time and passing it in to addOverlay so you don't have to worry about it maybe not being available when you need it?
sickrandir
@sickrandir
Jun 15 2016 18:50
ahhh. Debugging it never occured to me that they could not be available. I'll try tonight to update the overlay manually and not relying just on angular binding.
As usual thanks for your suggestion
Ian Gilman
@iangilman
Jun 15 2016 18:57
:)