Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

On Click Event Return row,col and place marker

Anonymous
2014-03-31
2014-04-01

  • Anonymous
    2014-03-31

    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!

     
  • Ruven
    Ruven
    2014-04-01

    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.

     

  • Anonymous
    2014-04-01

    Thanks Ruven!

    What about returning x,y (row,col)?

     
    • Ruven
      Ruven
      2014-04-01

      The iipmooviewer.annotations hash contains x,y coords and w,h dimensions for each marker

       


Anonymous


Cancel   Add attachments