summaryrefslogtreecommitdiff
path: root/httemplate/elements
diff options
context:
space:
mode:
authorJonathan Prykop <jonathan@freeside.biz>2016-09-23 21:46:14 -0500
committerJonathan Prykop <jonathan@freeside.biz>2016-09-27 12:22:33 -0500
commit302a18ba3d7f4a2527f68e7e07989d37a6db38fc (patch)
tree242aba375ea569edd025fe9caf5a583ed3ca6c9f /httemplate/elements
parent90c1ccf59eae95cb54907d6cb0ffc989eb3d2399 (diff)
71873: GlobalVision - directions [better error handling]
Diffstat (limited to 'httemplate/elements')
-rw-r--r--httemplate/elements/coord-links.html4
-rw-r--r--httemplate/elements/google_maps_api_key.html15
2 files changed, 15 insertions, 4 deletions
diff --git a/httemplate/elements/coord-links.html b/httemplate/elements/coord-links.html
index a755791ae..f27ffd39f 100644
--- a/httemplate/elements/coord-links.html
+++ b/httemplate/elements/coord-links.html
@@ -1,7 +1,5 @@
<& /elements/init_overlib.html &>
-% if ( $apikey ) {
-
<& /elements/popup_link.html,
'action' => $p. 'view/map.html?'. $query,
'label' => mt('map'),
@@ -21,8 +19,6 @@
&>
% }
-% } # end if $apikey
-
<A HREF="<%$p%>view/kml.cgi?<% $query %>"><% mt('earth') |h %></A>
<%init>
diff --git a/httemplate/elements/google_maps_api_key.html b/httemplate/elements/google_maps_api_key.html
new file mode 100644
index 000000000..0a4b7646c
--- /dev/null
+++ b/httemplate/elements/google_maps_api_key.html
@@ -0,0 +1,15 @@
+% if ($opt{'autherror'}) {
+<P STYLE="color: red;">
+There was an authentication error when loading google maps.
+Please check validity of existing key.
+</P>
+% }
+
+<P>In order to display google maps, your site administrator will need to set the
+<B>google_maps_api_key</B> setting under Configuration -> Settings. Please see the Google Maps
+<a href="https://developers.google.com/maps/documentation/javascript/get-api-key" target="_top">Get
+a Key/Authentication</a> documentation for information on acquiring a key.</P>
+
+<%init>
+my %opt = @_;
+</%init>