google.maps.Marker is deprecated

Using the Map component with the Google option and I’m adding a marker. When I did this I found that I got the following error in my dev console:

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.

Is this something that can be easily fixed with an upcoming patch? Also is there a easy way to control the size of the marker or must I specifically upload an image with the exact dimensions. It would be really cool if I could do precision placement in Cornerstone and drag/drop a marker without having to go fetch the coordinates separately from Google Maps.

BTW, this also seems to have broken my formatting after the map. If you notice in the CS builder the content to the right of the map is displayed as expected, but on the published page where the error is thrown the content is no longer formatted as expected.


Hi Nicholas,

Thanks for reaching out.
It seems that our development team has already taken care of the point you mentioned. Still, I will check and let you know. Regarding the format of the content, it might happen due to some broken HTML tags or any custom CSS code applied globally. I would suggest you check once by deleting the section one be one and check if that resolves your problem. If not, please provide login credentials for your site in a secure note to examine it further, including:

– WordPress Site URL & Login URL
– WordPress Admin username/password
– Specific page where you are having this problem.

To create a secure note, click the key icon underneath any of your posts.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.