aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/default/maps/openlayers.html
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2011-06-30 16:56:12 +0100
committerStruan Donald <struan@exo.org.uk>2011-06-30 16:56:12 +0100
commit0e6bb3e802c0614d64366bd19732b37a574dc12c (patch)
tree01b5d111754a0acef3f8a71da526ce1fbe59de55 /templates/web/default/maps/openlayers.html
parentb756440e4b5c0b356ee0d65d1647124317535c95 (diff)
parentfb78afe61194ea9b6fbec9596d69627e315ab97f (diff)
Merge branch 'master' of ssh://git.mysociety.org/data/git/public/fixmystreet into new_statuses
Conflicts: perllib/FixMyStreet/App/Controller/Reports.pm
Diffstat (limited to 'templates/web/default/maps/openlayers.html')
-rw-r--r--templates/web/default/maps/openlayers.html6
1 files changed, 6 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 %]