diff options
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Around.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Around.pm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Around.pm b/perllib/FixMyStreet/App/Controller/Around.pm index c554b2bb7..aed56e58f 100644 --- a/perllib/FixMyStreet/App/Controller/Around.pm +++ b/perllib/FixMyStreet/App/Controller/Around.pm @@ -180,13 +180,16 @@ sub display_location : Private { $c->stash->{distance} = $distance; # create a list of all the pins - my @pins = map { { + my @pins; + unless ($c->req->param('no_pins')) { + @pins = map { { latitude => $_->{latitude}, longitude => $_->{longitude}, colour => $_->{state} eq 'fixed' ? 'green' : 'red', id => $_->{id}, title => $_->{title}, - } } @$on_map_all, @$around_map; + } } @$on_map_all, @$around_map; + } { # FIXME - ideally this indented code should be in the templates FixMyStreet::Map::display_map( |