aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Map/OSM.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2011-05-25 10:27:52 +0100
committerMatthew Somerville <matthew@mysociety.org>2011-05-25 10:27:52 +0100
commit04f96c0a5558f53456b25ae4e7cffad41a7664cb (patch)
tree9ec8f7e1481d5bd05ed1740b718977f27ba1a594 /perllib/FixMyStreet/Map/OSM.pm
parent02de04c365b8d7e8323e556b6258c1c92ba672e6 (diff)
Template original Tilma map and some more text, updates on questionnaire page, bring in click pin fix from pre-london branch, other map types will be broken.
Diffstat (limited to 'perllib/FixMyStreet/Map/OSM.pm')
-rw-r--r--perllib/FixMyStreet/Map/OSM.pm5
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;
}