From 759f51a57cc59a097ae37faa618e240d08510a34 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 25 Nov 2011 13:45:25 +0000 Subject: [PATCH] Never disable a base layer --- app/assets/javascripts/map.js.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } -- 2.39.5