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.11k stars 426 forks source link

Possibility to change zooming speed? #101

Open DamianBusz opened 6 years ago

DamianBusz commented 6 years ago

Is there possibility to change zooming speed?

zimrick commented 6 years ago

Hi @DamianBusz, Yes, depending on which animation library you use to wrap react-simple-maps, you can specify the speed of the zoom yourself. For some of the examples I used react-motion, which is spring-based, so it's a bit tricky, since you can only specify the spring behaviour (stiffness and damping), but you could use something like react-move, which would allow you to specify the duration of the animation.

DamianBusz commented 6 years ago

Hi @zimrick , Thank you for your fast answer! I will try and let you know.