Skip to content

Commit

Permalink
Merge pull request #15 from sauevald/hotfix/vanamoisa-legend
Browse files Browse the repository at this point in the history
Reduce leaflet-legend-control size.
  • Loading branch information
tormi authored Mar 21, 2024
2 parents 98ff88a + 26257d2 commit a3265e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit a3265e6

Please sign in to comment.