backdrop-contrib / geofield

Stores geographic and location data (points, lines, and polygons).
GNU General Public License v2.0
0 stars 7 forks source link

Geofield Map gets console warnings re Google Maps JavaScript API #41

Open jenlampton opened 1 year ago

jenlampton commented 1 year ago

I'm using geofield with google maps, and seeing two warnings in the console about unsupported uses of the API:

Google Maps JavaScript API has been loaded directly without a callback. This is not supported and can lead to race conditions and suboptimal performance. For supported loading patterns please see https://goo.gle/js-api-loading
Google Maps JavaScript API warning: SensorNotRequired https://developers.google.com/maps/documentation/javascript/error-messages#sensor-not-required

Everything is still working as expected, but I imagine we'll see issues with this in the future unless we update.

herbdool commented 6 months ago

@jenlampton the PR looks good to me.