Does anyone have any advice on how to go about this? Basically, I would like to say onClick{ add marker, and console.log('row,col');}
Then when the image is zoomed or panned, then the markers will move and change along with the image.
Is this possible or am I barking up the wrong tree with iipimage?
Thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Yes is certainly possible. The list of markers is a simple hash in iipmooviewer.annotations. Take a look in src/annotations.js to see how the markers are created.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2014-04-01
Thanks Ruven!
What about returning x,y (row,col)?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Does anyone have any advice on how to go about this? Basically, I would like to say onClick{ add marker, and console.log('row,col');}
Then when the image is zoomed or panned, then the markers will move and change along with the image.
Is this possible or am I barking up the wrong tree with iipimage?
Thanks!
Yes is certainly possible. The list of markers is a simple hash in iipmooviewer.annotations. Take a look in src/annotations.js to see how the markers are created.
Thanks Ruven!
What about returning x,y (row,col)?
The iipmooviewer.annotations hash contains x,y coords and w,h dimensions for each marker