defaultBounds #469
Unanswered
nickwild-999
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Can you check that the div containing the map is actually in the page and has width and height > 0? That happened to me more often than I'd like to admit :) Also have a look if the maps API did actually generate it's DOM elements.. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to constrain a map according to the Markers, however I am struggling.
I can get the map working displaying multiple markers with the commented out code here, but when I try and put the map into a child component so I can try and use useMap it does not render anything on screen although each marker does log OK.
Any ideas what is going wrong and is there any example code for me to use defaultBounds in the child component
Many thanks
PARENT
CHILD
Beta Was this translation helpful? Give feedback.
All reactions