Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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/

like image 701
Chandan Jog Avatar asked Feb 26 '10 03:02

Chandan Jog


1 Answers

Raphael is good, but not good enough.

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

like image 158
Washa Wu Avatar answered Oct 07 '22 17:10

Washa Wu