diff --git a/templates/map.html b/templates/map.html index 99545c6..77fe0d8 100644 --- a/templates/map.html +++ b/templates/map.html @@ -37,7 +37,7 @@ function updateMap(){ overlayLayers[`${r} (${routes[r][0]} vehicle(s) with ${routes[r][1]} riders)`]=busLayers[r] } layerControl.remove(); - layerControl=L.control.layers(null,overlayLayers,{collapsed:false}).addTo(map); + layerControl=L.control.layers(null,overlayLayers,{collapsed:window.innerWidth