X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/899dab08f91e0b6b175105c4e419000f8649f91c..370f4bf562845a864e425f25bb8279afcb7016c3:/app/assets/javascripts/map.js.erb diff --git a/app/assets/javascripts/map.js.erb b/app/assets/javascripts/map.js.erb index 48fd35d0e..8591e260a 100644 --- a/app/assets/javascripts/map.js.erb +++ b/app/assets/javascripts/map.js.erb @@ -189,13 +189,13 @@ function getMapBaseLayer() { } function getMapLayers() { + var layerConfig = ""; for (var i = 0; i < layers.length; i++) { if (map.hasLayer(layers[i].layer)) { - return layers[i].layerCode; + layerConfig += layers[i].layerCode; } } - - return ""; + return layerConfig; } function setMapLayers(layerConfig) {