diff --git a/css/style.css b/css/style.css index 53390c4..6fddf2a 100644 --- a/css/style.css +++ b/css/style.css @@ -50,7 +50,8 @@ .leaflet-legend-control { background: white; padding: 1em; - max-height: 300px; + max-height: 200px; + max-width: 50vw; overflow: auto; font: 12px/1.5 'Helvetica Neue', diff --git a/js/script.js b/js/script.js index 2807ff3..702d29e 100644 --- a/js/script.js +++ b/js/script.js @@ -114,7 +114,7 @@ const overlayMaps = { L.control.layers(baseMaps, overlayMaps, { position: 'topleft' }).addTo(map) // Create a legend control for the Vanamõisa layer -var legend = L.esri.legendControl(vanamoisa) +const legend = L.esri.legendControl(vanamoisa) // Create an instance of the custom vertical slider control const verticalSlider = new L.Control.VerticalSlider({