mapview
mapview copied to clipboard
Toggle legends to show/hide with layers
With a map with multiple layers, but only one layer set to be visible on initiation (i.e. all other layers use hide = TRUE) the legends for all layers are shown on initiation. If a layer is then toggled to be visible then hidden again the legend also becomes hidden with the layer. Is it possible to have the legends for hidden layers also hidden on initiation?