aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Map/OSM.pm
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2011-07-28 19:49:57 +0100
committerStruan Donald <struan@exo.org.uk>2011-07-28 19:49:57 +0100
commit390f8e8ad1e10f832c4323c39bed2c883744a03f (patch)
tree78d03a3cebe1da43cd1b3051913b1e06e6802b26 /perllib/FixMyStreet/Map/OSM.pm
parentb2f1646d91c334bbb082db758a75a0fbc120b25d (diff)
update test for changed maps and fix state checking
Diffstat (limited to 'perllib/FixMyStreet/Map/OSM.pm')
-rw-r--r--perllib/FixMyStreet/Map/OSM.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Map/OSM.pm b/perllib/FixMyStreet/Map/OSM.pm
index 05dc6ad39..1fc90c8f0 100644
--- a/perllib/FixMyStreet/Map/OSM.pm
+++ b/perllib/FixMyStreet/Map/OSM.pm
@@ -115,7 +115,7 @@ sub map_pins {
# id => $p->id,
# title => $p->title,
#}
- [ $p->latitude, $p->longitude, $p->state eq 'fixed' ? 'green' : 'red', $p->id, $p->title ]
+ [ $p->latitude, $p->longitude, $p->is_fixed ? 'green' : 'red', $p->id, $p->title ]
} @$around_map, @$nearby;
return (\@pins, $around_map_list, $nearby, $dist);