diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-11-04 17:26:07 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-11-04 17:26:07 +0000 |
commit | 37ed4d4aae659db14f77d96e5da8e2deb922860d (patch) | |
tree | 05537c2b3a6f5135696f96938e967ecc9782dbdb /perllib/FixMyStreet/Map.pm | |
parent | f437c3f97bd05afaad265c314dbc34c55dd20bfb (diff) | |
parent | 051093f803444d99c48d130d59dcfe2ba9759c90 (diff) |
Merge branch 'issues/forcouncils/99-sorting'
Diffstat (limited to 'perllib/FixMyStreet/Map.pm')
-rw-r--r-- | perllib/FixMyStreet/Map.pm | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/perllib/FixMyStreet/Map.pm b/perllib/FixMyStreet/Map.pm index f7caf51d7..b6b618efb 100644 --- a/perllib/FixMyStreet/Map.pm +++ b/perllib/FixMyStreet/Map.pm @@ -91,10 +91,9 @@ sub map_features { # list of problems around map can be limited, but should show all pins my $around_limit = $c->cobrand->on_map_list_limit || undef; - my @around_args = @p{"min_lat", "max_lat", "min_lon", "max_lon", "interval"}; - my $on_map_all = $c->cobrand->problems_on_map->around_map( @around_args, undef, $p{categories}, $p{states} ); + my $on_map_all = $c->cobrand->problems_on_map->around_map( undef, %p ); my $on_map_list = $around_limit - ? $c->cobrand->problems_on_map->around_map( @around_args, $around_limit, $p{categories}, $p{states} ) + ? $c->cobrand->problems_on_map->around_map( $around_limit, %p ) : $on_map_all; my $dist = FixMyStreet::Gaze::get_radius_containing_population( $p{latitude}, $p{longitude} ); |