aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/base/maps/google-ol.html
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2017-03-31 10:11:32 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2017-03-31 10:11:32 +0100
commit3d967f09d8171b283c9a90afa6407dc033e4ae42 (patch)
tree6ee61d6ae0ec96dfe9444a45bd773d9030283415 /templates/web/base/maps/google-ol.html
parentc1346b93ee2dd21ec501484da89aa28350631960 (diff)
parent7032edb7a72758086fcaa3e3d0b198a163cf043c (diff)
Merge branch 'dominican-republic-improvements'
Diffstat (limited to 'templates/web/base/maps/google-ol.html')
-rw-r--r--templates/web/base/maps/google-ol.html7
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 _ "&amp;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'),