Open gka opened 12 years ago
yes, that's a nice start. however, panning and zooming in kartograph should be implemented using RaphaelJS to ensure that it is working in non-svg browsers too. Also we need to make sure that the line-widths are not scaled.
I used https://github.com/escobar5/raphael-pan-zoom
var panZoom = map.paper.panzoom({ initialZoom: 6, initialPosition: { x: 120, y: 70} });
panZoom.enable();
Hi Gregor,
I found this jQuery plugin allowing pan and zoom on SVG, through it could interest you: https://github.com/talos/jquery-svgpan