Skip to content

GeoSearch: Deprecation warning: Marker with Google Maps #6707

@schalkneethling

Description

@schalkneethling

🐛 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

  1. Start with any Instantsearch project using the template
  2. Add the GeoSearch widget and Google Maps
  3. Load the map with some markers displayed
  4. Open the console of developer tools
  5. Deprecation warning will be visible in the console

Live reproduction

https://4ur00x.csb.app

💭 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    triageIssues to be categorized by the team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions