Skip to content

bug(google-maps/advanced-marker-elements): advanced markers get stuck even when removed #28609

Closed
@apixandru

Description

@apixandru

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

The advanced markers stay on the map even if they are removed. This can be seen in the dev-app google-maps example

Reproduction

Advanced marker elements require your own private mapId, I cannot create a StackBlitz to expose my key/map ids but the demo already app illustrates the issue.

StackBlitz link: 5a490cc
Steps to reproduce:

  1. add advanced markers to the map
  2. attempt to remove them

Expected Behavior

The advanced markers should not show up on the map if they are removed, just like the regular marker objects

Actual Behavior

The regular marker objects are removed but the advanced marker objects remain on the map.

Environment

  • Angular: current main facd027
  • CDK/Material:
  • Browser(s): chrome
  • Operating System (e.g. Windows, macOS, Ubuntu): ubuntu

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: google-maps

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions