Zooming and Panning svg
javascript, jquery, svg
Solution
Thank everyone for help! Francis, thank you for Ariutta svgPanZoom plugin, it works great for me! I am load my svg map with `<embed>` tag, and i can use svg dom like this:
`$(window).load(function(){ var svg = document.getElementById("chart").getSVGDocument(); });`
Problem
I am trying to create an interactive map of floors of the building. And i use svg map. I am try to zoom it like this example: http://timmywil.github.io/jquery.panzoom/ In this example svg map imported in tags `<img src="some.svg">`, and work fine. But, i want to refer to elements by id on this svg, and for that i must import svg file as `<object data="some.svg"></object>`. But after that zoom not working (( I know about Raphael and svgpan, but it's very hard for understanding, and i think they a very big for this small task.