Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The Google Map Field module causes a browser javascript error :
Google Maps API warning: SensorNotRequired https://developers.google.com/maps/documentation/javascript/error-messag...
The sensor parameter is no longer required
The Google Maps docs have been updated and as of June 2014 and the &sensor parameter is no longer required for JavaScript or Web Service API calls. The parameter will now be ignored if passed along with any request.
docs - https://developers.google.com/maps/documentation/javascript/tutorial
The attached patch removes all references to sensor=true from the module
Comment | File | Size | Author |
---|---|---|---|
#10 | google_map_field-omit_sensor_param-2689005-10.patch | 1.63 KB | maximpodorov |
#3 | google_map_field-sensor=true_error-2689005-1-7.43.patch | 2.19 KB | shopoftheworld |
Comments
Comment #2
shopoftheworld CreditAttribution: shopoftheworld as a volunteer commentedComment #3
shopoftheworld CreditAttribution: shopoftheworld as a volunteer commentedComment #4
validollWork's fine!
Comment #5
shaneod CreditAttribution: shaneod commentedI'm getting the following errors:
Google Maps API error: MissingKeyMapError https://developers.google.com/maps/documentation/javascript/error-messag... @ js:35
maps.googleapis.com/maps-api-v3/api/js/28/6/intl/en_gb/util.js:211 Google Maps API warning: NoApiKeys https://developers.google.com/maps/documentation/javascript/error-messag...
aB.j @ maps.googleapis.com/maps-api-v3/api/js/28/6/intl/en_gb/util.js:211
maps.googleapis.com/maps-api-v3/api/js/28/6/intl/en_gb/util.js:211 Google Maps API warning: SensorNotRequired https://developers.google.com/maps/documentation/javascript/error-messag...
Comment #6
shaneod CreditAttribution: shaneod commentedPatch doesn't seem to have made any difference.
Comment #7
Marcus 78 CreditAttribution: Marcus 78 commentedIt made one difference, the Google Maps API warning: SensorNotRequired warning is gone :)
Get same problem as shaneod!
Comment #8
Marcus 78 CreditAttribution: Marcus 78 commentedOnly working i view mode and not in creating a new node
Comment #9
Marcus 78 CreditAttribution: Marcus 78 commentedCheck this issue if you have problem getting it working
https://www.drupal.org/node/2862552
Comment #10
maximpodorov CreditAttribution: maximpodorov commentedThe new patch has proper structure and the same content.
Comment #11
Kris77 CreditAttribution: Kris77 commentedGet same problem as @shaneod and @Marcus78...
The module seems unusable.
Comment #12
jcnventura CreditAttribution: jcnventura commentedRTBC++ This gets rid of the sensor warning
The module is usable, But in any case, the 'unusable' comments in #5, #6, #7, #8, #9 and #11 seemt to be their own, unrelated issue.
Comment #14
scot.hubbard CreditAttribution: scot.hubbard commentedComment #15
scot.hubbard CreditAttribution: scot.hubbard commentedFixed in release 7.x-2.20 (https://www.drupal.org/project/google_map_field/releases/7.x-2.20)