[freeside-commits] branch FREESIDE_4_BRANCH updated. 26de6b1b4f7b4ae81bceb650d8ac3a043f9834c7

Mitch Jackson mitch at freeside.biz
Wed Aug 22 12:16:57 PDT 2018


The branch, FREESIDE_4_BRANCH has been updated
       via  26de6b1b4f7b4ae81bceb650d8ac3a043f9834c7 (commit)
      from  052866cc1a6f486f2522641a5b94f6e5526c6c19 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 26de6b1b4f7b4ae81bceb650d8ac3a043f9834c7
Author: Mitch Jackson <mitch at freeside.biz>
Date:   Wed Aug 22 15:14:25 2018 -0400

    RT# 81150 Google now requires api key for drawing api

diff --git a/httemplate/search/elements/gmap.html b/httemplate/search/elements/gmap.html
index 47db1507d..399ed8353 100644
--- a/httemplate/search/elements/gmap.html
+++ b/httemplate/search/elements/gmap.html
@@ -46,7 +46,9 @@ my $tree = {
   features => \@features
 };
 
+my $apikey = FS::Conf->new->config('google_maps_api_key');
 </%init>
+
 <div id="map_canvas"></div>
 
 <style type="text/css">
@@ -57,7 +59,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">

-----------------------------------------------------------------------

Summary of changes:
 httemplate/search/elements/gmap.html | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)




More information about the freeside-commits mailing list