diff options
author | Matthew Somerville <matthew@fury.ukcod.org.uk> | 2011-02-17 01:02:46 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@fury.ukcod.org.uk> | 2011-02-17 01:02:46 +0000 |
commit | 3033514eec2a30d43797c42eeb175fa9da9aeef1 (patch) | |
tree | c68a775bdbdd6789aea2290c629dd0e145dab31e /web/index.cgi | |
parent | 2699b760e4b08b1422ab8232af4081f75627588e (diff) |
Display pins.
Diffstat (limited to 'web/index.cgi')
-rwxr-xr-x | web/index.cgi | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/index.cgi b/web/index.cgi index 098602e5d..ded2583ea 100755 --- a/web/index.cgi +++ b/web/index.cgi @@ -892,7 +892,7 @@ sub display_location { my ($on_map_all, $on_map, $around_map, $dist) = FixMyStreet::Map::map_features($q, $latitude, $longitude, $interval); my @pins; foreach (@$on_map_all) { - push @pins, [ $_->{latitude}, $_->{longitude}, $_->{state} eq 'fixed' ? 'green' : 'red' ]; + push @pins, [ $_->{latitude}, $_->{longitude}, ($_->{state} eq 'fixed' ? 'green' : 'red'), $_->{id} ]; } my $on_list = ''; foreach (@$on_map) { @@ -918,7 +918,7 @@ sub display_location { $around_list .= $dist . 'km)</small>'; $around_list .= ' <small>' . _('(fixed)') . '</small>' if $_->{state} eq 'fixed'; $around_list .= '</li>'; - push @pins, [ $_->{latitude}, $_->{longitude}, $_->{state} eq 'fixed' ? 'green' : 'red' ]; + push @pins, [ $_->{latitude}, $_->{longitude}, ($_->{state} eq 'fixed' ? 'green' : 'red'), $_->{id} ]; } $around_list = $q->li(_('No problems found.')) unless $around_list; |