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
This commit is contained in:
Serge Noiraud 2020-07-08 23:00:15 +02:00 committed by GitHub
parent 0d698c13cc
commit b523530fb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -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:

View File

@ -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: