Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Leaflet.Control.Layers.Tree as a plugin in folium #1606

Closed
vizsim opened this issue Jul 2, 2022 · 3 comments · Fixed by #1895
Closed

Leaflet.Control.Layers.Tree as a plugin in folium #1606

vizsim opened this issue Jul 2, 2022 · 3 comments · Fixed by #1895
Labels
plugin This issue/PR is about an existing or new plugin

Comments

@vizsim
Copy link

vizsim commented Jul 2, 2022

I would love to see Leaflet.Control.Layers.Tree as a plugin in folium!
https://github.com/jjimenezshaw/Leaflet.Control.Layers.Tree

It would boost the ability to interact with mulit-layered data maps created by folium.

Nice example:
https://jjimenezshaw.github.io/Leaflet.Control.Layers.Tree/examples/airports.html

grafik

@IndigoWizard
Copy link

This PR #1592 : "add groupedlayercontrol plugin" is the closest thing to the feature so far, which comes in response to the issue #1025 : "Radio control instead of checkboxs for layer control" that requests something like Leaflet plugin leaflet-groupedlayercontrol, but it seems it's been hanging there with no new reviews or checks for merge.

@Conengmo Conengmo added the plugin This issue/PR is about an existing or new plugin label Nov 17, 2022
@Conengmo
Copy link
Member

#1592 was merged and will be included in the 0.14.0 release. It doesn't contain functionality for layer control trees, so we can keep this issue open.

@hansthen
Copy link
Collaborator

hansthen commented Mar 8, 2024

@Conengmo I can take a stab at porting this plugin to Folium. I used it in another project and I am quite fond of it. The main issue I foresee is that Leaflet.Control.Layers.Tree is configured through a javascript dictionary with functions at arbitrary locations in the tree.

Can I pilfer your tojavascript filter from the draft PR in #1856?

hansthen added a commit to hansthen/folium that referenced this issue Mar 8, 2024
hansthen added a commit to hansthen/folium that referenced this issue Mar 8, 2024
hansthen added a commit to hansthen/folium that referenced this issue Apr 3, 2024
Conengmo added a commit that referenced this issue Apr 4, 2024
* Re: #1606 Add TreeLayerControl to Folium

* add custom Template class with tojavascript filter (#1912)

* Drop Bootstrap 3 and use separate glyphicons css file (#1914)

---------

Co-authored-by: Frank Anema <33519926+Conengmo@users.noreply.github.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
plugin This issue/PR is about an existing or new plugin
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants