From f171579497681fb01212c9de813eb95424c6351e Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Fri, 3 Jun 2016 09:03:39 +0100 Subject: [PATCH] imagery: show layer control expanded --- cookbooks/imagery/templates/default/imagery.js.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbooks/imagery/templates/default/imagery.js.erb b/cookbooks/imagery/templates/default/imagery.js.erb index dc4182706..a728ef60e 100644 --- a/cookbooks/imagery/templates/default/imagery.js.erb +++ b/cookbooks/imagery/templates/default/imagery.js.erb @@ -3,7 +3,7 @@ function createMap(divName) { var map = L.map(divName).fitBounds(<%= @bbox.to_json %>); // Create a layer switcher - var layers = L.control.layers(); + var layers = L.control.layers(null, null, {collapsed:false}); // Add OpenStreetMap layer layers.addBaseLayer(L.tileLayer("http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", { -- 2.39.5