]> git.openstreetmap.org Git - chef.git/commitdiff
imagery: show layer control expanded
authorGrant Slater <git@firefishy.com>
Fri, 3 Jun 2016 08:03:39 +0000 (09:03 +0100)
committerGrant Slater <git@firefishy.com>
Fri, 3 Jun 2016 08:03:39 +0000 (09:03 +0100)
cookbooks/imagery/templates/default/imagery.js.erb

index dc41827062fb89b3b25d0088b2d9aaad2745ca9b..a728ef60e2ca6fb6833cb63def759725b6656c9d 100644 (file)
@@ -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", {