[%
map_js = [
    "https://maps.googleapis.com/maps/api/js?v=3",
    version('/js/OpenLayers/OpenLayers.google.js'),
    version('/js/map-OpenLayers.js'),
    version('/js/map-google-ol.js'),
]
%]

[% map_sub_links = BLOCK %]
<a class="hidden-nojs" id="map_layer_toggle" href="">[% loc('Satellite') %]</a>
[% END %]

[% map_html = BLOCK %]
[% INCLUDE maps/openlayers.html %]
[% UNLESS around_page %]
<p id="sub_map_links">
     [% map_sub_links %]
</p>
[% END %]
[% END %]

[%
google_maps_url = "https://maps.googleapis.com/maps/api/js?v=3";
IF c.config.GOOGLE_MAPS_API_KEY;
    google_maps_url = google_maps_url _ "&amp;key=" _ c.config.GOOGLE_MAPS_API_KEY;
END;

map_js = [
    google_maps_url,
    version('/js/OpenLayers/OpenLayers.google.js'),
    version('/js/map-OpenLayers.js'),
    version('/js/map-google-ol.js'),
]
%]

[% map_sub_links = BLOCK %]
<a class="hidden-nojs" id="map_layer_toggle" href="">[% loc('Satellite') %]</a>
[% END %]

[% map_html = BLOCK %]
[% INCLUDE maps/openlayers.html %]
[% UNLESS around_page %]
<p id="sub_map_links">
     [% map_sub_links %]
</p>
[% END %]
[% END %]

Use Google Maps JS API key, if present.
Use Google Maps JS API key, if present.

This appends the GOOGLE_MAPS_API_KEY to the Google Maps JavaScript URL
as a `key` parameter.
