aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/map-toner-lite.js
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2016-06-17 13:57:34 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2016-07-11 15:03:52 +0100
commit962b881830f9edb4f0b0b5aac3ece87c80af1f0a (patch)
tree222109707006df0f59358308bfb6cb57526a5243 /web/js/map-toner-lite.js
parent615e5b7b1cc1a829f4ee982659220a7a01a13639 (diff)
Tidy up JavaScript functions.
Split big functions into smaller more descriptive ones.
Diffstat (limited to 'web/js/map-toner-lite.js')
-rw-r--r--web/js/map-toner-lite.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/js/map-toner-lite.js b/web/js/map-toner-lite.js
index 5291d0254..eda12ff28 100644
--- a/web/js/map-toner-lite.js
+++ b/web/js/map-toner-lite.js
@@ -1,4 +1,4 @@
-function set_map_config(perm) {
+fixmystreet.maps.config = function() {
var permalink_id;
if ($('#map_permalink').length) {
permalink_id = 'map_permalink';
@@ -16,4 +16,4 @@ function set_map_config(perm) {
// The Stamen JS returns HTTP urls, fix that
stamen.tile.getProvider('toner-lite').url = 'https://stamen-tiles-{S}a.ssl.fastly.net/toner-lite/{Z}/{X}/{Y}.png';
-}
+};