aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/base/maps/google.html
blob: eeb4c98370c3b21e337a073447dcbabeb25b010a (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
[% map_js = BLOCK %]
<style>
#map_box img {
    max-width: none;
}
#map_box {
    color: #000;
}
</style>
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false"></script>
<script type="text/javascript" src="[% version('/js/map-google.js') %]"></script>
[% END %]

[% 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 %]