zcreativelabs / react-simple-maps

Beautiful React SVG maps with d3-geo and topojson using a declarative api.
https://www.react-simple-maps.io/
MIT License
3.07k stars 424 forks source link

Example with Tooltip #11

Closed kutyel closed 7 years ago

kutyel commented 7 years ago

Hi! Awesome work btw!! Have been working in my own map for 1 month now with Datamaps, d3 and topojson and the experience hasn't been great so far... I am seriously considering switching to react-simple-maps but the only thing that prevents me is that I don't see clearly the Tooltip integration and it is a must for our business logic, I would highly appreciate a simple example in the docs showing how to do so, thanks in advance! 😄

zimrick commented 7 years ago

Hi, and thank you for giving react-simple-maps a try. 😃

I just added an example using redux-tooltip. I am sure there are plenty of other options out there. Basically, as long as you can trigger the tooltip via some kind of action it should work.

Hope this helps. Let me know if you run into any trouble with this.

kutyel commented 7 years ago

Awesome! That was fast! 🎉