Google.maps.event.addDomListener() is deprecated, use the standard addEventListener() method instead

Created on 13 March 2024, 9 months ago

Problem/Motivation

When displaying a view of geofiield_map field, the message is displayed: "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.
"

Steps to reproduce

Get a Google Maps Key
In a Drupal website on DEV environment:

  • Install the views, geogield and geofield_map modules.
  • Configure the geofield map settings with the Googme Maps key.
  • Create a content type with a "location" geofield fields, as WKT.
  • Save de content type.
  • Create 2 or 3 contents of this content type, with the location.
  • Create a view page of the created content
  • Add an attached file
  • Format: Geofield MAp, behaviour "Empty Map centered at the default center"
  • Check "Lazy load map"
  • Parameter the filters on your content type.
  • Add an url.
  • Display the view
  • Check the console. It displays "Google.maps.event.addDomListener() est obsolète, utilisez plutôt la méthode standard addEventListener() : https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener La fonctionnalité continuera à fonctionner et il n'y a pas de envisagez de le mettre hors service." in your browser language.
🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇫🇷France frondeau Nantes, FRANCE

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024