googlemaps / googlemaps/js-markerclusterer

addMarker error with AdvancedMarkerElement

Open
#1,073 0 comments 0 reactions 0 assignees View on GitHub
triage me type: bug
Dominant language
TypeScript
Stars
293
Forks
104
Avg merge
3m
Merged PRs (30d)
18

Description

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?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.