These are chat archives for openseadragon/openseadragon

2nd
Feb 2016
Grant Echols
@gechols
Feb 02 2016 23:46
Quick question about Viewer.addOverlay - the location parameter. What coordinate system is the location parameter supposed to be specified in? Is this viewport or image relative (I'm pretty sure its not web relative, right)?
Ian Gilman
@iangilman
Feb 02 2016 23:47
Just a sec...
If you specify .x and .y that's viewport. If you specify .px and .py that's image
Grant Echols
@gechols
Feb 02 2016 23:49
K - so technically they are both supported. That will work fine
Ian Gilman
@iangilman
Feb 02 2016 23:49
Hmm...maybe not with location...looks like maybe location is always viewport
Grant Echols
@gechols
Feb 02 2016 23:50
That's the only examples I could find - that's why I was wondering. I still have to do some math to adjust to viewport every time I deal with it...
Ian Gilman
@iangilman
Feb 02 2016 23:51
But if you say viewer.addOverlay({ px: foo, py: bar }) it'll work for image coordinates
That could probably be documented better!