-
Notifications
You must be signed in to change notification settings - Fork 553
Description
🐛 Current behavior
Apologies if an issue already exists. I did a couple of searches for terms related to this and could not find anything. When loading a map using a combination of Geo-search and Google Maps, I see the following deprecation notice in the developer 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.
Happy to help with the migration.
🔍 Steps to reproduce
- Start with any Instantsearch project using the template
- Add the GeoSearch widget and Google Maps
- Load the map with some markers displayed
- Open the console of developer tools
- Deprecation warning will be visible in the console
Live reproduction
💭 Expected behavior
InstantSearch uses the recommended google.maps.marker.AdvancedMarkerElement
instead of the current google.maps.Marker
as can be seen here
}) => google.maps.OverlayView | google.maps.Marker; |
Package version
instantsearch.js 4.80.0
Operating system
macOS 26
Browser
Vivaldi 7.5.3735.74 (Stable channel) (arm64)
Code of Conduct
- I agree to follow this project's Code of Conduct