Open authentiqdigital opened 2 years ago
It seems this issue is out of date. The library has been rewritten in favor of hooks. The custom styles are not being styled correctly when the mapIds are included in the useJsApiLoader
hook.
You can still make this work by calling setMapId
on the onLoad
map callback.
In case anyone else faces this challenge: take a look at this example on StackOverflow.
You first need to load the style in your
LoadScript
-component by listing it in itsmapIds
-prop and then refer to it from within yourGoogleMap
-component via theoptions
-prop.The example from the link above: