diff options
author | Jonathan Prykop <jonathan@freeside.biz> | 2016-10-25 14:23:40 -0500 |
---|---|---|
committer | Jonathan Prykop <jonathan@freeside.biz> | 2016-10-25 14:23:40 -0500 |
commit | 0ae9ab3d7db1f7c231028717dcdbc0e35e030ed4 (patch) | |
tree | 468739b96c0654de8bc116f5729ed5f23e75be0d /httemplate/view/map.html | |
parent | 36246368fb9b34b03c05572d212e2f48abbb63f2 (diff) |
73107: Map regression: now always requiring API key
Diffstat (limited to 'httemplate/view/map.html')
-rw-r--r-- | httemplate/view/map.html | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/httemplate/view/map.html b/httemplate/view/map.html index b3459dc1f..01ffc6db7 100644 --- a/httemplate/view/map.html +++ b/httemplate/view/map.html @@ -1,5 +1,3 @@ -% if ( $apikey ) { - %# the actual page <& /elements/header-popup.html, { title => '',#$name, @@ -11,11 +9,6 @@ <div id="map_canvas"></div> -% } else { -<& /elements/header-popup.html &> -<& /elements/google_maps_api_key.html &> -% } - <%def .head> <meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> @@ -29,7 +22,7 @@ body { height: 100%; margin: 0px; padding: 0px } @media print { #map_canvas { height: 500px; margin: 0; } } </style> -<script type="text/javascript" src="https://maps.google.com/maps/api/js?v=3&key=<% $apikey %>"> +<script type="text/javascript" src="https://maps.google.com/maps/api/js?v=3<% $apikey ? '&key='.$apikey : '' %>"> </script> <script type="text/javascript"> @@ -39,7 +32,7 @@ var map; // function name specified by google maps api, special hook for auth errors function gm_authFailure () { document.body.innerHTML = -<% include('/elements/google_maps_api_key.html', autherror => 1) |js_string%>; +<% include('/elements/google_maps_api_key.html', autherror => $apikey ) |js_string%>; } |