components icon indicating copy to clipboard operation
components copied to clipboard

feat(MapMarkerAdvanced, MapOptions, MapTypeStyle): MapMarkerAdvanced requires mapId, but MapTypeStyle[] cannot be used with a mapId

Open jacob-amptech opened this issue 1 year ago • 0 comments

Feature Description

When attempting to implement a dark theme using a MapTypeStyle[] in MapOptions the styles do not apply and the following message is printed to the console:

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.

For websites that need to be able to control toggling the map between dark and light theme, while also being forced off of the deprecated MapMarker, this poses a significant issue.

Use Case

The ability for a website to control the styling of google maps to conform to toggling between light and dark theme.

jacob-amptech avatar Apr 30 '24 22:04 jacob-amptech