diff options
| author | Ivan Kohler <ivan@freeside.biz> | 2018-09-13 10:54:53 -0700 |
|---|---|---|
| committer | Ivan Kohler <ivan@freeside.biz> | 2018-09-13 10:54:53 -0700 |
| commit | d7b4beaeb975c55f5203aef275c7c01853fa51f2 (patch) | |
| tree | 2eb0a708bfbfdbfaa3c6db935911a8fd830446d4 /httemplate/search/elements/gmap.html | |
| parent | 2c0ab6236b187a39fbb6e2046180e2531a391333 (diff) | |
| parent | 4cf578816f5a491b1f66ddb5a9e832457ebe1332 (diff) | |
Merge branch 'FREESIDE_3_BRANCH' of git.freeside.biz:/home/git/freeside into FREESIDE_3_BRANCH
Diffstat (limited to 'httemplate/search/elements/gmap.html')
| -rw-r--r-- | httemplate/search/elements/gmap.html | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/httemplate/search/elements/gmap.html b/httemplate/search/elements/gmap.html index 47db1507d..1caf76718 100644 --- a/httemplate/search/elements/gmap.html +++ b/httemplate/search/elements/gmap.html @@ -37,6 +37,9 @@ Generic Google Maps front end. </%doc> <%init> + +my $apikey = FS::Conf->new->config('google_maps_api_key'); + foreach (@features) { $_->{type} = 'Feature'; # any other per-feature massaging can go here @@ -57,7 +60,7 @@ body { height: 100%; margin: 0px; padding: 0px } #map_canvas { height: 100%; } </style> -<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?v=3"> +<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?v=3<% $apikey ? "&key=$apikey" : '' %>"> </script> <script type="text/javascript"> |
