Skip to content
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

Google Maps: Cant add styles to options #202

Closed
MickL opened this issue Aug 17, 2024 · 1 comment
Closed

Google Maps: Cant add styles to options #202

MickL opened this issue Aug 17, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@MickL
Copy link
Contributor

MickL commented Aug 17, 2024

🐛 The bug

When adding styles to prop options of <ScriptGoogleMaps :options="{}" /> they dont get applied. Instead a warning is shown in the console:

Google Maps JavaScript API: A Map's styles property cannot be set when a mapId is present. When a mapId is present, Map styles are controlled via the cloud console.

I did not set any mapId.

@MickL MickL added the bug Something isn't working label Aug 17, 2024
@harlan-zw
Copy link
Collaborator

harlan-zw commented Sep 3, 2024

Thanks for the issue, this should be fixed in the latest version. Providing mapOptions.styles will style the static map and the interactive map.

The only issue is that it seems to break the map marker api (on google maps side).

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants