Equivalent for mapboxGL flyTo
camera transition?
#104
Replies: 3 comments 10 replies
-
FWIW - deck.gl has a FlyToInterpolator that handles this for deck.gl applications (deck can also control and animate base maps). It could be worth testing that this works with the google basemap. I suspect the FlyToInterpolator code could also be deconstructed and rebuilt as a (deck.gl-independent) part of this react-google-maps library for those who want to use google-maps standalone without deck.gl |
Beta Was this translation helpful? Give feedback.
-
I think this could be an interesting Idea for this library and it would be worthwhile to explore how this could fit into the reactive programming model. The Google Maps API itself doesn't provide anything like this. There sometimes are automatic minimal camera-transitions when using |
Beta Was this translation helpful? Give feedback.
-
how about |
Beta Was this translation helpful? Give feedback.
-
In visgl's other repository (react-map-gl) theres an example for camera transitions. This internally uses the
.flyTo
function of mapbox, which there is no direct equivalent with google maps as far as i can tell.Does anyone know of a way to achieve a similar effect to make the camera zoom out, pan and zoom back in as smoothly as in the
.flyTo
example?Beta Was this translation helpful? Give feedback.
All reactions