-
-
Notifications
You must be signed in to change notification settings - Fork 417
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Style Map by addng Map ID #1616
Comments
I'm sure someone did that before successfully, can't really spare time for research now. If you succeed, please post your solution here. Official documentation usually helps. Ask questions in community or on slack. |
I did research this problem quite a bit. According to this https://stackoverflow.com/questions/62780394/how-do-i-change-the-mapid-of-a-google-vector-map But in the docs https://react-google-maps-api-docs.netlify.app/#googlemap I tried using the id prop but it had no affect. |
As mentioned in #1443 the types are not up to date yet. Since this is essentially a configuration, I don't think we would have add any additional documentation here. But be sure to use the beta channel and add the mapId to both the load script and the map element itself. |
I updated to the latest version and now it works! thanks. |
Full example if anyone else needs it.
|
I'm having an issue getting my styles to work when I try using hooks: const { isLoaded } = useJsApiLoader({
id: 'google-map-script',
googleMapsApiKey: 'API_KEY,
mapIds: ['MAP_ID'],
});
However, when I comment out the |
@captDaylight Did you ever get this working for you? I am having the same issue and I have not been able to get it to work? |
I created a Map ID and added a style to it. But I couldn't get it to work. I tried using id prop and mapId but style doesnt change. Please cover this in the documentation on how to set a map id to change the map style.
Thanks
The text was updated successfully, but these errors were encountered: