diff options
author | Matthew Somerville <matthew@mysociety.org> | 2016-06-17 13:57:34 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-07-11 15:03:52 +0100 |
commit | 962b881830f9edb4f0b0b5aac3ece87c80af1f0a (patch) | |
tree | 222109707006df0f59358308bfb6cb57526a5243 /web/js/map-streetview.js | |
parent | 615e5b7b1cc1a829f4ee982659220a7a01a13639 (diff) |
Tidy up JavaScript functions.
Split big functions into smaller more descriptive ones.
Diffstat (limited to 'web/js/map-streetview.js')
-rw-r--r-- | web/js/map-streetview.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/js/map-streetview.js b/web/js/map-streetview.js index 58d856781..6d9195246 100644 --- a/web/js/map-streetview.js +++ b/web/js/map-streetview.js @@ -1,4 +1,4 @@ -function set_map_config(perm) { +fixmystreet.maps.config = function() { fixmystreet.controls = [ new OpenLayers.Control.ArgParser(), new OpenLayers.Control.Navigation(), @@ -6,7 +6,7 @@ function set_map_config(perm) { new OpenLayers.Control.PanZoomFMS() ]; fixmystreet.map_type = OpenLayers.Layer.StreetView; -} +}; // http://os.openstreetmap.org/openlayers/OS.js (added one line) |