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 #24

Open
jessqnnguyen opened this issue Oct 24, 2019 · 3 comments
Open

fitBounds #24

jessqnnguyen opened this issue Oct 24, 2019 · 3 comments

Comments

@jessqnnguyen
Copy link

Could this component be extended to allow use of fitBounds so that we can make sure a given list of coordinates are all fitted within the viewport?

@lucifer1004
Copy link
Contributor

lucifer1004 commented Oct 24, 2019

For a temporary workaround, you can get the reference to the map object and call the .fitBounds() method.

I'll think about how to add this API elegantly.

Thanks a lot for your kind advice.

@lucifer1004
Copy link
Contributor

@all-contributors please add @jessqnnguyen for ideas

@allcontributors
Copy link
Contributor

@lucifer1004

I've put up a pull request to add @jessqnnguyen! 🎉

@googlemap-react googlemap-react deleted a comment from allcontributors bot Oct 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants