diff options
Diffstat (limited to 'templates/web/default/maps/osm.html')
-rw-r--r-- | templates/web/default/maps/osm.html | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/templates/web/default/maps/osm.html b/templates/web/default/maps/osm.html index 5f8336c52..a3e6ea27d 100644 --- a/templates/web/default/maps/osm.html +++ b/templates/web/default/maps/osm.html @@ -9,11 +9,10 @@ var fixmystreet = { 'latitude': [% map.latitude %], 'longitude': [% map.longitude %], - 'pins': [ -[% FOR pin IN map.pins -%] - [ [% pin.latitude %], [% pin.longitude %], '[% pin.colour %]', '[% pin.id %]', '[% pin.title %]' ] - [%- IF !loop.last %],[% END %] -[% END %] ], +[% IF map.zoom -%] + 'zoom': [% map.zoom %], +[%- END %] + 'pins': [% INCLUDE maps/pins_js.html %], 'map_type': [% map.map_type %] } </script> |