On Click Event Return row,col and place marker

  • 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?


  • 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



Cancel  Add attachments

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks