diff options
author | Marius Halden <marius.h@lden.org> | 2015-09-25 21:11:47 +0200 |
---|---|---|
committer | Marius Halden <marius.h@lden.org> | 2015-09-25 21:11:47 +0200 |
commit | 346753a4294f627a7f617fbdad0b64e88ac9a407 (patch) | |
tree | b3c87f07271e3b267f9e54de9c36470cecad9e93 | |
parent | cc0acdd34052e79f3df368ac1f524de31df19a1b (diff) |
Add colours to map markers
-rw-r--r-- | perllib/FixMyStreet/Cobrand/FiksGataMi.pm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/FiksGataMi.pm b/perllib/FixMyStreet/Cobrand/FiksGataMi.pm index 7b175f371..4d1fbaaa5 100644 --- a/perllib/FixMyStreet/Cobrand/FiksGataMi.pm +++ b/perllib/FixMyStreet/Cobrand/FiksGataMi.pm @@ -28,6 +28,13 @@ sub disambiguate_location { }; } +sub pin_colour { + my ( $self, $p, $context ) = @_; + return 'green' if $p->is_fixed || $p->is_closed; + return 'red' if $p->state eq 'unconfirmed' || $p->state eq 'confirmed'; + return 'yellow'; +} + sub area_types { [ 'NKO', 'NFY', 'NRA' ]; } |