aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Map.pm
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2015-10-06 11:50:48 +0100
committerDave Arter <davea@mysociety.org>2015-10-06 11:50:48 +0100
commit2ed2c57659c0d288cd1cec391baef9faf002030d (patch)
tree742c5ad6e4671050805292061f85e9ff6ec308a0 /perllib/FixMyStreet/Map.pm
parentde8ba7899dd4692cdf062f4b2735157f7fd14cb7 (diff)
parentffc03ca3330a43a98a3728df6f3d56c7fc1837d1 (diff)
Merge branch 'zurich-2015-dev-candidate'
This is the work done in early 2015 to improve the Zürich admin interface, primarily.
Diffstat (limited to 'perllib/FixMyStreet/Map.pm')
-rw-r--r--perllib/FixMyStreet/Map.pm10
1 files changed, 10 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Map.pm b/perllib/FixMyStreet/Map.pm
index b050592ba..81b81f656 100644
--- a/perllib/FixMyStreet/Map.pm
+++ b/perllib/FixMyStreet/Map.pm
@@ -35,6 +35,16 @@ sub allowed_maps {
return grep { $avail{$_} } @allowed;
}
+=head2 reload_allowed_maps
+
+Allows tests to override MAP_TYPE at run time.
+
+=cut
+
+sub reload_allowed_maps {
+ @ALL_MAP_CLASSES = allowed_maps();
+}
+
=head2 map_class
Set and return the appropriate class given a query parameter string.