VictorCazanave / react-svg-map

A set of React.js components to display an interactive SVG map
https://victorcazanave.github.io/react-svg-map/
MIT License
229 stars 48 forks source link

How to adjust / add className into each path for coloring #60

Open CarsonLoi opened 2 years ago

CarsonLoi commented 2 years ago

May I have your direction on that?

Also, Is it possible to implement zoom and pan function as well? Many thanks!!

VictorCazanave commented 1 year ago

May I have your direction on that?

Have you looked at the heat map example?

Also, Is it possible to implement zoom and pan function as well? Many thanks!!

My goal is to keep these components as simple as possible and only generate SVG. If you want to zoom and pan, you can wrap the map in a component like https://github.com/chrvadala/react-svg-pan-zoom