Is this possible: Zoomable SVG Image Map

jpmorris picture jpmorris · Jun 13, 2011 · Viewed 14.4k times · Source

I would like to make a very big svg that is both a CLICKABLE image map and is ZOOMABLE. If I understand the html5 specs both of these seem possible, but no one mentions using both of these together. Are there any examples out there?

I don't want to use jquery and a jpg/png because I would like to stick to SVG. Any leads at all would be greatly appreciated.

Thank you!

Answer

Peter Collingridge picture Peter Collingridge · Jun 29, 2011

As user785194 says, you don't need to use HTML5, you can do it natively in SVG - you can do it all with EMCAScript inside the SVG itself. I've written a detailed description of how to do it here: http://www.petercollingridge.co.uk/interactive-svg-components/pan-and-zoom-control