aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/base/maps/google.html
blob: e8c07b1137f050440286f6485fa211486dd39144 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<style>
#map_box img {
    max-width: none;
}
#map_box {
    color: #000;
}
</style>

[% map_html = BLOCK %]
<script nonce="[% csp_nonce %]">
var fixmystreet = fixmystreet || {};
$.extend(fixmystreet, {
    'area': [ [% map.area.join(',') %] ],
    'latitude': [% map.latitude %],
    'longitude': [% map.longitude %],
[% IF map.any_zoom -%]
    'zoomToBounds': 1,
[%- END %]
[% IF map.zoom -%]
    'zoom': [% map.zoom %],
[%- END %]
    'pins': [% INCLUDE maps/pins_js.html %]
});
</script>
<div id="map_box">
    [% pre_map %]
    <div id="map"></div>
[% END %]