Closed Newtonrific closed 5 months ago
Same issue here. I would love if this could be fixed.
Sorry for the long silence on this. It should work as expected now. Feel free to reopen if it doesn't.
library(mapview)
m1 = mapview(franconia, zcol = "district", hide = TRUE)
m2 = mapview(breweries, zcol = "founded", hide = FALSE)
m3 = mapview(franconia, zcol = "SHAPE_AREA", hide = TRUE)
m12 = m1 + m2
m12
m123 = m12 + m3
m123
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?