Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fitBounds with GoogleMapsOverlay #4945

Closed
maurusrv opened this issue Sep 16, 2020 · 2 comments
Closed

fitBounds with GoogleMapsOverlay #4945

maurusrv opened this issue Sep 16, 2020 · 2 comments
Labels

Comments

@maurusrv
Copy link

hi, i was able to implement this example and i was able to not only render but mark my coordinates too.

but my question is, is there really no way to do fitBounds on GoogleMapsOverlay?

it was mentioned in #2179 (comment) that there is no way to do that.

then, i was able to use this https://gist.github.com/yuanmai/3291295 to do it in google maps object directly, but the result was just updating the map, without the zoom animation.

Any one who has implemented this with a more fluid transition?

Thanks!

@Pessimistress
Copy link
Collaborator

I think you are looking in the wrong place. deck.gl's GoogleMapOverlay is an implementation of Google Maps' overlay interface. Deck in this case does not have any control over the camera, just rerenders when the base map demands it.

So if you can get the desired effect with some Google Maps API, then the overlay will just follow. If the Maps API does not support this, then there is nothing deck.gl can do.

@maurusrv
Copy link
Author

hi, i refactored my code a bit and yes i agree, the overlay follows. thanks anyways!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants