Dynamically adding/removing FeatureGroup to/from the Layer Control?
问题 I am currently using leaflet.draw plugin to draw polygons and lines. The plugin depends on FeatureGroup for storing and editing. I want to manage these geometries (e.g. turn their visibility on or off) like those in the layer control. Ultimately, I want to be able to add and remove these FeatureGroups. Is this achievable? Additional Information (thanks to iH8 for commenting and sorry for the lack of details): Here is what I want to achieve: 1. Treat FeatureGroup like dynamic layers (can add