diff options
author | Matthew Somerville <matthew@mysociety.org> | 2011-05-25 17:33:26 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2011-05-25 17:33:26 +0100 |
commit | 71a8ac1a32323177b68e6c13a1f9b24534aa44ee (patch) | |
tree | dfafc68b6f1da91f4a386eea1b135fbb86fcda7f /perllib/FixMyStreet/Map/OSM.pm | |
parent | bbe4d5975fddfc731b0177119bf4cda401d41d97 (diff) |
Tidy up map parmeters.
Diffstat (limited to 'perllib/FixMyStreet/Map/OSM.pm')
-rw-r--r-- | perllib/FixMyStreet/Map/OSM.pm | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/perllib/FixMyStreet/Map/OSM.pm b/perllib/FixMyStreet/Map/OSM.pm index aeece3960..194f403c9 100644 --- a/perllib/FixMyStreet/Map/OSM.pm +++ b/perllib/FixMyStreet/Map/OSM.pm @@ -35,7 +35,7 @@ sub copyright { # display_map C PARAMS # PARAMS include: # latitude, longitude for the centre point of the map -# TYPE is 1 if the map is clickable, 0 otherwise. +# CLICKABLE is set if the map is clickable # PINS is array of pins to show, location and colour sub display_map { my ($self, $c, %params) = @_; @@ -64,10 +64,8 @@ sub display_map { here => [ map { Utils::truncate_coordinate($_) } tile_to_latlon( $x_tile, $y_tile, $zoom_act ) ], }; $c->stash->{map} = { + %params, type => 'osm', - clickable => $params{type}, - latitude => $params{latitude}, - longitude => $params{longitude}, map_type => $self->map_type(), tile_url => $self->base_tile_url(), copyright => $self->copyright(), @@ -75,7 +73,6 @@ sub display_map { y_tile => $y_tile, zoom => $zoom, zoom_act => $zoom_act, - pins => $params{pins}, compass => $compass, }; } |