0

I have an image in an svg file that I imported into a <canvas> object using canvg (http://code.google.com/p/canvg/).

canvg('canvas', '../path/to/your.svg')

I need to perform an action whenever the user clicks inside one of the paths defined in the svg file. Is that possible?

Canvas is not needed, if this can be done without it please let me know (Is there something like ?)

1 Answers1

0

Yes, You can try this with Kinetic.js . Please take a look at the HTML5 Canvas World Map SVG Path with KineticJS example.

Ye Lin Aung
  • 11,234
  • 8
  • 45
  • 51