Hello, I am after some advice on what is the best way to handle my task, I am trying to set up a DB backend to the OpenSeaDragon viewer, so that based on the tile source it loads Overlays from the database, I have a few questions, the first is what is the best way to return the currently loaded tilesource rather actually set it, is that just through openseadragon.tilesource.getImageInfo? secondly, what it the best way to add these overlays to the map, should I build the html page dynamically on page load, or is it more efficient to use addoverlay. One last final question, is there a way I can embed messages into the add-overlay without needing to use Div's and so on, as it would be less messy if I can dynamically build the page using just say mysql and javascript than having to add lots of Divs for many points?

Sorry for such a simple question, but also I have a test page set up at http://www.travishale.com/panoramas/test/, for the backend I want to use some of this to work out the X and Y parameters I actually need for the overlays, is it the Physical Mouse X and Y, or another parameter which is supposed to represent what I enter in the overlay paramers, or should I use something like PhysicalToDataX 7 Y?

I got the coordinates bit worked out, just not sure how to most efficiency add overlays, which I would use to show more information about specific points (e.g. popups) however given there are so many points I may display depending on the source, that I am wondering if there is a more efficient way than using divs and handling clicks on overlays to trigger popups.

@iangilman , thanks for the tips. I am happy for the overlays or points to be shown all on the one image they relate to, but it does look like I will need to use the div's by the look of it. Just a feature request more than anything but it would be nice in future versions if you could potentially have an overlay or point that you can associate text with inside the point, rather than using div's (say through the userobject) so when the point is clicked it provides the userobject data for rendering or whatever. Another question, how do I programatically determine the source of the currently loaded tile?