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
It works, but in the browser logs there is a warning (in my case in german) that says something like "a mapid attribute cant be changed after creating map. Please set mapId in the map options of the constructor". Which in my case is useLoadScript. But setting the mapId there, it doesen't have any effects:
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I tried to apply a cloud styled map from google by passing the mapId directly in the map options like this:
<GoogleMap options={{mapId: 'b33d4ec0b12f8386'}} />
It works, but in the browser logs there is a warning (in my case in german) that says something like "a mapid attribute cant be changed after creating map. Please set mapId in the map options of the constructor". Which in my case is useLoadScript. But setting the mapId there, it doesen't have any effects:
Although its only a warning (yellow in the browser logs) it also lead to an error on the productive page, where the whole nextjs page crashed.
Any hints?
Beta Was this translation helpful? Give feedback.
All reactions