Skip to content

addMarker error with AdvancedMarkerElement #1073

@draftd01

Description

@draftd01

It doesn't seem that AdvancedMarkerElement is compatible with the addMarker() function, as there is an error that says...

Uncaught (in promise) TypeError: t.getPosition is not a function

at line...

return marker.getPosition()!;

According to the AdvancedMarkerElement docs and legacy Marker docs, getPosition() from Marker has been replaced with the "position" property in the AdvancedMarkerElement

Will compatibility with the AdvancedMarkerElement be implemented in the future?

Metadata

Metadata

Assignees

No one assigned

    Labels

    triage meI really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions