aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/map-OpenStreetMap.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-OpenStreetMap.js
parent615e5b7b1cc1a829f4ee982659220a7a01a13639 (diff)
Tidy up JavaScript functions.
Split big functions into smaller more descriptive ones.
Diffstat (limited to 'web/js/map-OpenStreetMap.js')
-rw-r--r--web/js/map-OpenStreetMap.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/js/map-OpenStreetMap.js b/web/js/map-OpenStreetMap.js
index 5dcf3cab3..b2d6a4f8b 100644
--- a/web/js/map-OpenStreetMap.js
+++ b/web/js/map-OpenStreetMap.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';
@@ -10,7 +10,7 @@ function set_map_config(perm) {
new OpenLayers.Control.PermalinkFMS(permalink_id),
new OpenLayers.Control.PanZoomFMS({id: 'fms_pan_zoom' })
];
-}
+};
// http://www.openstreetmap.org/openlayers/OpenStreetMap.js (added maxResolution)