diff options
Diffstat (limited to 'templates/web/base/maps/google-ol.html')
-rw-r--r-- | templates/web/base/maps/google-ol.html | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/templates/web/base/maps/google-ol.html b/templates/web/base/maps/google-ol.html index e326bd713..7c7711de9 100644 --- a/templates/web/base/maps/google-ol.html +++ b/templates/web/base/maps/google-ol.html @@ -1,6 +1,11 @@ [% +google_maps_url = "https://maps.googleapis.com/maps/api/js?v=3"; +IF c.config.GOOGLE_MAPS_API_KEY; + google_maps_url = google_maps_url _ "&key=" _ c.config.GOOGLE_MAPS_API_KEY; +END; + map_js = [ - "https://maps.googleapis.com/maps/api/js?v=3", + google_maps_url, version('/js/OpenLayers/OpenLayers.google.js'), version('/js/map-OpenLayers.js'), version('/js/map-google-ol.js'), |