You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have no idea where I'm going wrong, but the center and zoom props that I pass into the GoogleMap component are not triggering any sort of change until the component is re-rendered based on an outside change. Thus, the center of the map is right at 0 lat 0 lng, but as soon as something occurs in the parent to re-render the component in question, the center is correctly changed to the variable that I passed into the center prop (which is hard coded).
Does anyone have any insight as to why the initial load of the map is going wrong?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have no idea where I'm going wrong, but the center and zoom props that I pass into the GoogleMap component are not triggering any sort of change until the component is re-rendered based on an outside change. Thus, the center of the map is right at 0 lat 0 lng, but as soon as something occurs in the parent to re-render the component in question, the center is correctly changed to the variable that I passed into the center prop (which is hard coded).
Does anyone have any insight as to why the initial load of the map is going wrong?
Beta Was this translation helpful? Give feedback.
All reactions