Zooming and panning svg images using raphael.js or some other js library

Chandan Jog picture Chandan Jog · Feb 26, 2010 · Viewed 32.5k times · Source

I am in need of a small script that will display an SVG (vector image) within a frame that has 2 functions;

  1. The image can be panned (moved around to look at different parts of the svg image with the cursor) simmilar to google maps.

  2. The SVG image can be zoomed in and out on also simmilar to google maps except there will be no need to load new imagery as the image is a vector.

For a simmilar script i have seen that works with normal image formats see http://jibbering.com/routeplanner/

Answer

Washa Wu picture Washa Wu · Sep 28, 2010

Raphael is good, but not good enough.

Check out this page: http://code.google.com/p/svgpan/. It does exactly what you asked for.