Adds toggle button for legend

Adds a toggle button to show/hide the legend of the map to have more space