aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Map/Bing.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2011-05-25 12:52:27 +0100
committerMatthew Somerville <matthew@mysociety.org>2011-05-25 12:52:27 +0100
commit1e39c5b6d4c1200d89292b3715513a7260bd9743 (patch)
treea9c33705a24487737163f136200c2693d93ba64b /perllib/FixMyStreet/Map/Bing.pm
parent2bebb13e4c055f8d52bd0d68112cd040b21b3abd (diff)
Remove old CGI Q from Map calls.
Diffstat (limited to 'perllib/FixMyStreet/Map/Bing.pm')
-rw-r--r--perllib/FixMyStreet/Map/Bing.pm10
1 files changed, 4 insertions, 6 deletions
diff --git a/perllib/FixMyStreet/Map/Bing.pm b/perllib/FixMyStreet/Map/Bing.pm
index ccd57221f..0db1a51c3 100644
--- a/perllib/FixMyStreet/Map/Bing.pm
+++ b/perllib/FixMyStreet/Map/Bing.pm
@@ -18,15 +18,13 @@ sub header_js {
';
}
-# display_map Q PARAMS
+# display_map C PARAMS
# PARAMS include:
-# EASTING, NORTHING for the centre point of the map
-# TYPE is 1 if the map is clickable, 2 if clickable and has a form upload,
-# 0 if not clickable
+# latitude, longitude for the centre point of the map
+# TYPE is 1 if the map is clickable, 0 otherwise.
# PINS is array of pins to show, location and colour
-# PRE/POST are HTML to show above/below map
sub display_map {
- my ($self, $c, $q, %params) = @_;
+ my ($self, $c, %params) = @_;
$params{pre} ||= '';
my @pins;