Setting bounds #93
Classical31
started this conversation in
General
Replies: 2 comments 11 replies
-
Instead of the Let me know if you run into problems! |
Beta Was this translation helpful? Give feedback.
6 replies
-
@Classical31 I'm trying to use your code but I get 'google' is not defined. Where are you importing "google" from? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Since this library is quite new, I am having trouble finding info. I want to set the bounds of the map based on markers that are added. Before, I used to check a ref for the maps and if it exists, update the bounds:
I am having trouble accessing the map reference, or finding an appropriate map event for this. Previously, I would use an
onLoad
from the@react-google-maps/api
but there is not one present here. How should I set map bounds?Beta Was this translation helpful? Give feedback.
All reactions