summaryrefslogtreecommitdiff
path: root/httemplate/elements/polygon.html
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2018-09-13 10:54:53 -0700
committerIvan Kohler <ivan@freeside.biz>2018-09-13 10:54:53 -0700
commitd7b4beaeb975c55f5203aef275c7c01853fa51f2 (patch)
tree2eb0a708bfbfdbfaa3c6db935911a8fd830446d4 /httemplate/elements/polygon.html
parent2c0ab6236b187a39fbb6e2046180e2531a391333 (diff)
parent4cf578816f5a491b1f66ddb5a9e832457ebe1332 (diff)
Merge branch 'FREESIDE_3_BRANCH' of git.freeside.biz:/home/git/freeside into FREESIDE_3_BRANCH
Diffstat (limited to 'httemplate/elements/polygon.html')
-rw-r--r--httemplate/elements/polygon.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/httemplate/elements/polygon.html b/httemplate/elements/polygon.html
index 813aa419f..b5aa93753 100644
--- a/httemplate/elements/polygon.html
+++ b/httemplate/elements/polygon.html
@@ -5,13 +5,16 @@ my $id = $opt{'id'} || $opt{'field'};
my $div_id = "div_$id";
my $vertices_json = $opt{'curr_value'} || '[]';
+
+my $apikey = FS::Conf->new->config('google_maps_api_key');
+
</%init>
<& hidden.html, %opt &>
<div id="<% $div_id %>" style="height: 600px; width: 600px"></div>
<div id="<% $div_id %>_hint" style="width: 100%; border: 2px solid black; text-align: center; box-sizing: border-box; padding: 4px">&nbsp;</div>
<script src="<% $fsurl %>elements/jquery.js"></script>
-<script src="https://maps.googleapis.com/maps/api/js?libraries=drawing&v=3.22"></script>
+<script src="https://maps.googleapis.com/maps/api/js?libraries=drawing&v=3.22<% $apikey ? "&key=$apikey" : '' %>"></script>
<script>
var map;
var drawingManager;