google-map-react / google-map-react

Google map library for react that allows rendering components as markers :tada:
http://google-map-react.github.io/google-map-react/map/main/
MIT License
6.38k stars 835 forks source link

AdvancedMarkerElement #1215

Open cshi2024 opened 5 months ago

cshi2024 commented 5 months ago

Describe the bug 🐛

Trying to use the AdvancedMarkerElement but I get this error in the screenshot below. I am using the latest version of the package. I have set yesIWantToUseGoogleMapApiInternals to TRUE.

image
ypbernardi commented 5 months ago

i have the same problem, my markers is not showing in production.

estiven-lg commented 1 month ago

It is necessary to add the "marker" library, so that the AdvancedMarkerElement class appears, when adding this library it is necessary to add a mapId. For more details take a look at this link: https://developers.google.com/maps/documentation/javascript/advanced-markers/migration image

image