trafficonese / leaflet.extras

Extra functionality for leaflet R package.
https://trafficonese.github.io/leaflet.extras/
GNU General Public License v3.0
210 stars 74 forks source link

Leaflet.StyledLayerControl & Leaflet.GroupedLayerControl Plugins #202

Open hugovr24 opened 3 years ago

hugovr24 commented 3 years ago

Hello,

Would you add the Leaflet.StyledLayerControl(https://github.com/davicustodio/Leaflet.StyledLayerControl) & Leaflet.GroupedLayerControl (https://github.com/ismyrnow/leaflet-groupedlayercontrol) Plugins to the leaflet.extras? I think having the option to customizes groups and overlay groups in leaflet maps would a great addition to the package as it gives us more freedom to organize our data displayed

Thank you, Hugo

rafabelokurows commented 1 month ago

First, thanks for the amazing package.

I agree with the request, although it's more of an aesthetic concern, it would be a very nice addition to the leaflet R toolbox.

Thank you!

trafficonese commented 1 month ago

I totally agree that it would be nice to have, but there are some problems IIRC..

The Leaflet.StyledLayerControl plugin doesnt work with leaflet > 1 and the last activity was 4 years ago.. So I doubt there would be any update anytime soon.

and leaflet-groupedlayercontrol is 6 years old and not actively maintained.

I can still try them out and see if they work with the R leaflet version.

rafabelokurows commented 1 month ago

Thanks for the quick reply!

If you could be so kind as to check another alternative: https://github.com/jjimenezshaw/Leaflet.Control.Layers.Tree

image

While it doesn't do the same as the other ones, it would allow the user to group and organize overlaygroups. If I'm seeing this correctly, it works with Leaflet > 1