fullstackreact / google-maps-react

Companion code to the "How to Write a Google Maps React Component" Tutorial
https://www.fullstackreact.com/articles/how-to-write-a-google-maps-react-component/
MIT License
1.64k stars 819 forks source link

Animate to coordinates/location/region #440

Open RiatIO opened 4 years ago

RiatIO commented 4 years ago

I've been trying to figure out how to find a similar function to animateToRegion for react-native-maps and "transitionInterpolator: new FlyToInterpolator()" for Mapbox GL JS without luck.

Currently, when I press a marker I just change the center coordinates and zoom, and it basically jumps to that region. However, how can I do a smooth transition on a Marker click?

AndriesJacobus commented 3 years ago

I've been trying to figure out how to find a similar function to animateToRegion for react-native-maps and "transitionInterpolator: new FlyToInterpolator()" for Mapbox GL JS without luck.

Currently, when I press a marker I just change the center coordinates and zoom, and it basically jumps to that region. However, how can I do a smooth transition on a Marker click?

I'm having this issue as well