yanivam / react-svg-worldmap

A simple, compact and free React SVG world map.
MIT License
117 stars 45 forks source link

Add Zoom and Pan capabilities #151

Open RegisSaffi opened 9 months ago

RegisSaffi commented 9 months ago

It would be awesome if zoom, pan and pinch gestures are added

I tried using react-zoom-pan-pinch library to achieve it, but the problem came with tooltips, when you zoom the tooltip gets misplaced pointing at wrong path because it is not aware of the current direction of its target.

Otherwise, Great and simple library.

charbel911 commented 6 months ago

in my case i didn't use this i've worked on scale map but it happens the same thing tooltip sometimes not show sometimes changed position on zoom please any solution for this

Josh-Cena commented 1 month ago

I had been working on the richInteractions feature which does what you want. For now the only feature that was completed is double click for zooming. PRs welcome to complete the rest, as per the docs.