aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Cobrand/Bromley.pm
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2012-07-26 18:41:27 +0100
committerStruan Donald <struan@exo.org.uk>2012-08-09 09:58:36 +0100
commitee5aa052f4b8b1baf36d4237ecccd2e774b37c10 (patch)
tree5da09633c9cf1ea111be70ad873a2bb932d3ace6 /perllib/FixMyStreet/Cobrand/Bromley.pm
parentb853eaf2783217e7790668a75af1102e1ae333dd (diff)
adjust the initial display of the map on all reports page so there's
less jumping about on Internet Explorer
Diffstat (limited to 'perllib/FixMyStreet/Cobrand/Bromley.pm')
-rw-r--r--perllib/FixMyStreet/Cobrand/Bromley.pm13
1 files changed, 13 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Bromley.pm b/perllib/FixMyStreet/Cobrand/Bromley.pm
index 1d32784db..026a56feb 100644
--- a/perllib/FixMyStreet/Cobrand/Bromley.pm
+++ b/perllib/FixMyStreet/Cobrand/Bromley.pm
@@ -88,5 +88,18 @@ sub contact_name { 'Bromley Council (do not reply)'; }
sub reports_per_page { return 20; }
+sub tweak_all_reports_map {
+ my $self = shift;
+ my $c = shift;
+
+ if ( !$c->stash->{ward} ) {
+ $c->stash->{map}->{longitude} = 0.040622967881348;
+ $c->stash->{map}->{latitude} = 51.36690161822;
+ $c->stash->{map}->{any_zoom} = 0;
+ $c->stash->{map}->{zoom} = 11;
+ }
+}
+
+
1;