Skip to content

[google_maps_web] Migrate legacy Markers to Advanced Markers. #130472

@ditman

Description

@ditman

Is there an existing issue for this?

Use case

The following deprecation notice is starting to show when using regular markers:

As of February 21st, 2024, google.maps.Marker is deprecated. Please use google.maps.marker.AdvancedMarkerElement instead.

At this time, google.maps.Marker is not scheduled to be discontinued, but google.maps.marker.AdvancedMarkerElement is recommended over google.maps.Marker.

While google.maps.Marker will continue to receive bug fixes for any major regressions, existing bugs in google.maps.Marker will not be addressed.

At least 12 months notice will be given before support is discontinued. Please see https://developers.google.com/maps/deprecations for additional details and https://developers.google.com/maps/documentation/javascript/advanced-markers/migration for the migration guide.

We should explore ways to use AdvancedMarkerElements instead of Markers.


The web plugin uses (now) Legacy Markers, which aren't very powerful compared to their mobile counterparts.

Users have complained about the lack of customization, like:

  • size
  • hue rotation (different colors)
  • marker rotation (actually rotate the marker around its center)

Proposal

Migrate to Advanced Markers:

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: new featureNothing broken; request for a new capabilityp: mapsGoogle Maps pluginplatform-webWeb applications specificallyteam-webOwned by Web platform teamtriaged-webTriaged by Web platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions