-
Hello, does anybody know where we can set the MapId to be used? I want to use a custom style I already prepared in my Google Cloud Console. Those are things I have done:
Somehow I still get the default view. Can someone help me with this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Im having the same problem. |
Beta Was this translation helpful? Give feedback.
-
Heyy, get back to you as there might be anyone still having similar issues. You need to pass the map id inside an const options = useMemo<MapOptions>(() => ({
mapId: mapId
}), [])
<GoogleMap options={options}/> |
Beta Was this translation helpful? Give feedback.
Heyy, get back to you as there might be anyone still having similar issues. You need to pass the map id inside an
MapOptions
object and pass it to theoptions
parameter in yourGoogleMap
component. E.g.,