You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a custom scaled circle legend I am using to indicate values associated with circle marker size in leaflet but I would like to be able to show/hide the circles as well as the legend with the group control feature.
I worked out how to do this. Integrated into a new addCustomLegend function so let me know if you want a PR!
But now I've ran into issue #477 in that legend layer control only works with overlayGroups. I think allowing legends to be part of baseGroups would be super useful so +1 for finding a solution to that.
I have a custom scaled circle legend I am using to indicate values associated with circle marker size in leaflet but I would like to be able to show/hide the circles as well as the legend with the group control feature.
The group arg is available in the
addLegend
function but not withaddControl
. Would it be possible to add this feature? I know this is achievable using workarounds in shiny (https://stackoverflow.com/questions/50373497/r-leaflet-show-hide-addcontrol-element-with-group-layers) but I am I not using shiny in this case.Something like this:
Thanks!
The text was updated successfully, but these errors were encountered: