kartograph / kartograph.js

UNMAINTAINED Open source JavaScript renderer for Kartograph SVG maps
http://kartograph.org
GNU Lesser General Public License v3.0
1.51k stars 228 forks source link

Pan and zoom #27

Open gka opened 12 years ago

pirhoo commented 11 years ago

Hi Gregor,

I found this jQuery plugin allowing pan and zoom on SVG, through it could interest you: https://github.com/talos/jquery-svgpan

gka commented 11 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.

bmoore27 commented 11 years ago

I used https://github.com/escobar5/raphael-pan-zoom

var panZoom = map.paper.panzoom({ initialZoom: 6, initialPosition: { x: 120, y: 70} });
panZoom.enable();