aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/base/maps/google.html
blob: c86c757fb7d27071aea1792a720819ce1c5005aa (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
30
31
32
33
34
35
36
<style>
#map_box img {
    max-width: none;
}
#map_box {
    color: #000;
}
</style>
[%
map_js = [
    "http://maps.googleapis.com/maps/api/js?sensor=false",
    version('/js/map-google.js'),
]
%]

[% map_html = BLOCK %]
<script nonce="[% csp_nonce %]">
var fixmystreet = fixmystreet || {};
$.extend(fixmystreet, {
    'area': [ [% map.area.join(',') %] ],
    'all_pins': '[% all_pins %]',
    '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 %]