From: Tom Hughes Date: Fri, 25 Nov 2011 13:45:25 +0000 (+0000) Subject: Never disable a base layer X-Git-Tag: live~6654 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/759f51a57cc59a097ae37faa618e240d08510a34 Never disable a base layer --- diff --git a/app/assets/javascripts/map.js.erb b/app/assets/javascripts/map.js.erb index 4a2925c7b..e2f06babb 100644 --- a/app/assets/javascripts/map.js.erb +++ b/app/assets/javascripts/map.js.erb @@ -268,7 +268,7 @@ function setMapLayers(layerConfig) { } else { map.layers[i].setVisibility(true); } - } else { + } else if (!map.layers[i].isBaseLayer) { map.layers[i].setVisibility(false); } }