diff options
Diffstat (limited to 'templates/web/default/maps')
-rw-r--r-- | templates/web/default/maps/openlayers.html | 6 | ||||
-rw-r--r-- | templates/web/default/maps/tilma/original.html | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/templates/web/default/maps/openlayers.html b/templates/web/default/maps/openlayers.html index 7da732913..45551c3d5 100644 --- a/templates/web/default/maps/openlayers.html +++ b/templates/web/default/maps/openlayers.html @@ -7,8 +7,14 @@ <input type="hidden" name="zoom" value="[% map.zoom %]"> <script type="text/javascript"> var fixmystreet = { + 'page': '[% page %]', + 'area': '[% map.area %]', + 'all_pins': [% all_pins || "''" | html %], 'latitude': [% map.latitude %], 'longitude': [% map.longitude %], +[% IF map.any_zoom -%] + 'zoomToBounds': 1, +[%- END %] [% IF map.zoom -%] 'zoom': [% map.zoom %], [%- END %] diff --git a/templates/web/default/maps/tilma/original.html b/templates/web/default/maps/tilma/original.html index e02a974f8..5a07683ac 100644 --- a/templates/web/default/maps/tilma/original.html +++ b/templates/web/default/maps/tilma/original.html @@ -22,6 +22,7 @@ <script type="text/javascript"> [% c.cobrand.root_path_js %] var fixmystreet = { + 'all_pins': [% all_pins || "''" | html %], 'x': [% map.x - 3 %], 'y': [% map.y - 3 %], 'start_x': [% map.px %], |