Skip to content

<gmp-map> does not support Dark Google Maps Cloud Styles #297

Description

@cam-mcevenue

Is your feature request related to a problem? Please describe.

<gmp-map> elements and MapElement class do not support setting color scheme. So it is impossible to set it to DARK or FOLLOW_SYSTEM. It can only be set on the Map instance on initialization through MapOptions. Since MapElement creates the innerMap, the api provides no way to set the MapOptions before it is initiliazed or have MapElement pass it a color scheme option.

This means the developer that wants to support DARK and FOLLOW_SYSTEM mode can not use the gmp-map web component, and must resort to using the Map class.

Describe the solution you'd like
Provide an attribute on gmp-map or prop on MapElement to set the colorScheme option.

Describe alternatives you've considered
There are no alternatives. Its either you use the legacy pattern and support Dark Mode, or use the modern pattern and only support light mode.

Additional context

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    triage meI really want to be triaged.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions