From b523530fb06f29ee3621f6a3ae8163cdf5c79e09 Mon Sep 17 00:00:00 2001 From: Serge Noiraud Date: Wed, 8 Jul 2020 23:00:15 +0200 Subject: [PATCH] Narrated Website Google Maps Output JS Warning (#1038) SensorNotRequired: The sensor parameter is no longer required for the Maps JavaScript API. It won't prevent the Maps JavaScript API from working correctly, but we recommend that you remove the sensor parameter from the script element. Fixes #011654 --- gramps/plugins/webreport/person.py | 4 ++-- gramps/plugins/webreport/place.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gramps/plugins/webreport/person.py b/gramps/plugins/webreport/person.py index ed66b37bf..3f7cbc1dd 100644 --- a/gramps/plugins/webreport/person.py +++ b/gramps/plugins/webreport/person.py @@ -705,9 +705,9 @@ class PersonPages(BasePage): # add MapService specific javascript code if self.mapservice == "Google": - src_js = GOOGLE_MAPS + "api/js?sensor=false" + src_js = GOOGLE_MAPS + "api/js" if self.googlemapkey: - src_js += "&key=" + self.googlemapkey + src_js += "?key=" + self.googlemapkey head += Html("script", type="text/javascript", src=src_js, inline=True) else: diff --git a/gramps/plugins/webreport/place.py b/gramps/plugins/webreport/place.py index 6e5c64d03..501bfde4b 100644 --- a/gramps/plugins/webreport/place.py +++ b/gramps/plugins/webreport/place.py @@ -367,10 +367,10 @@ class PlacePages(BasePage): media="screen", rel="stylesheet") # add MapService specific javascript code - src_js = GOOGLE_MAPS + "api/js?sensor=false" + src_js = GOOGLE_MAPS + "api/js" if self.mapservice == "Google": if self.googlemapkey: - src_js += "&key=" + self.googlemapkey + src_js += "?key=" + self.googlemapkey head += Html("script", type="text/javascript", src=src_js, inline=True) else: