Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Update Google Maps API to prevent from developer warnings #8

Open
PhocaCz opened this issue Feb 17, 2024 · 2 comments

Comments

@PhocaCz
Copy link
Owner

PhocaCz commented Feb 17, 2024

Update Google Maps API to prevent from developer warnings
https://www.phoca.cz/forum/viewtopic.php?p=179454#p179454

@MVECoder
Copy link

MVECoder commented May 9, 2024

Adding additional developer warnings not referenced in the forum topic:

  1. 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.

  2. google.maps.event.addDomListener() is deprecated, use the standard addEventListener() method instead: https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener
    The feature will continue to work and there is no plan to decommission it.

@PhocaCz
Copy link
Owner Author

PhocaCz commented May 10, 2024

Hi,

  1. the AdvancedMarkerElement was used in development version but it brings more errors than not using it (not using it brings warning, using it brings more additional errors)

So I still need to find if there is some other way to implement it.

E.g.: https://stackoverflow.com/questions/78104425/google-maps-marker-advancedmarkerelement-is-undefined etc. etc.

Jan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants