diff options
author | Struan Donald <struan@exo.org.uk> | 2011-05-25 17:45:17 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2011-05-25 17:45:17 +0100 |
commit | 349dd7c35e2ad5d1cef4c8e4a023ec3b17dd8d80 (patch) | |
tree | 0705979206f0302bc224bbc1887fd91ad182635a /perllib/FixMyStreet/Map/OSM.pm | |
parent | 09a64afec4e023a184de075df3780c8b525b6066 (diff) | |
parent | 71a8ac1a32323177b68e6c13a1f9b24534aa44ee (diff) |
Merge branch 'migrate_to_catalyst' of ssh://git.mysociety.org/data/git/public/fixmystreet into migrate_to_catalyst
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, }; } |