projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
052866c
)
RT# 81150 Google now requires api key for drawing api
author
Mitch Jackson
<mitch@freeside.biz>
Wed, 22 Aug 2018 19:14:25 +0000
(15:14 -0400)
committer
Mitch Jackson
<mitch@freeside.biz>
Wed, 22 Aug 2018 19:14:25 +0000
(15:14 -0400)
httemplate/search/elements/gmap.html
patch
|
blob
|
history
diff --git
a/httemplate/search/elements/gmap.html
b/httemplate/search/elements/gmap.html
index
47db150
..
399ed83
100644
(file)
--- 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">