I get this error in the console:
Google Maps API warning: SensorNotRequired https://developers.google.com/maps/documentation/javascript/error-messag...

SensorNotRequired Warning

From Google dev documentation:
The sensor parameter is no longer required for the Google Maps JavaScript API. It won't prevent the Google Maps JavaScript API from working correctly, but we recommend that you remove the sensor parameter from the script element.

https://developers.google.com/maps/documentation/javascript/error-messages

Comments

mortona2k created an issue. See original summary.

mortona2k’s picture

This patch removes ?sensor=false

sylvainm’s picture

Status: Active » Needs review
StatusFileSize
new577 bytes

I think the patch should look like this one :-)

ollie222’s picture

The patch in #3 looks to fix the warning message, thank you.

marcoscano’s picture

Status: Needs review » Reviewed & tested by the community

Patch in #3 correctly removes the javascript warning.
Marking as RTBC

vlooivlerke’s picture

Status: Reviewed & tested by the community » Needs review

Hi, this breaks this patch
https://www.drupal.org/node/2746209#comment-11386117


'data' => '//maps.googleapis.com/maps/api/js?sensor=false' . $api_key_query_param,

josueValRob’s picture

do you have something for drupal 7??

  • seanB committed 07ad8fb on 7.x-2.x authored by SylvainM
    Issue #2660778 by mortona2k, SylvainM: Google Maps error...
seanb’s picture

Status: Needs review » Fixed

Thanks, committed to 2.x!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.