diff options
author | Struan Donald <struan@exo.org.uk> | 2011-05-25 11:52:16 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2011-05-25 11:52:16 +0100 |
commit | 2bebb13e4c055f8d52bd0d68112cd040b21b3abd (patch) | |
tree | dd41a30d522f16ef3ad0852a86f591a65ead2335 /perllib/FixMyStreet/Map/OSM.pm | |
parent | ef849541cbe7b200db1bd4af6cdc67e3061d1486 (diff) | |
parent | 04f96c0a5558f53456b25ae4e7cffad41a7664cb (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 | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Map/OSM.pm b/perllib/FixMyStreet/Map/OSM.pm index 292ad4ed7..73742d0d3 100644 --- a/perllib/FixMyStreet/Map/OSM.pm +++ b/perllib/FixMyStreet/Map/OSM.pm @@ -33,7 +33,7 @@ sub map_type { # PINS is array of pins to show, location and colour # PRE/POST are HTML to show above/below map sub display_map { - my ($self, $q, %params) = @_; + my ($self, $c, $q, %params) = @_; $params{pre} ||= ''; # Map centre may be overridden in the query string @@ -94,6 +94,9 @@ var fixmystreet = { </noscript></div> <p id="copyright">$copyright</p> EOF + $c->stash->{map} = { + type => 'osm', + }; return $out; } |