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
{{ message }}
Repository navigation
Is there a feature to make multiple layer controls in folium python with different data? #1484
With this code I get the map above but I need to make another layer control option for another summary.
For ex. if I add another
folium.LayerControl().add_to(my_map)
to my code I get the following:
But this layer control has the same options as the above summary.
Is there a way in folium to create different layer controls with different data on the same map so that If I am selecting the first summary in the first layer control I get the data like in image1 but if I choose the below layer control the data is displayed according to that particular layer control.
How do I link different data with different layer control to view them on the same map.Is there a feature in folium like this?
Thank you
We added a new plugin called GroupedLayerControl (#1592) which might be helpful here. It will be in the upcoming 0.14.0, or you can get folium directly from our main branch now.
Other than that I'm afraid I can't help you at the moment.
Activity
yoshida-thiago commentedon Jan 6, 2022
I am having the same problem! Were you able to find a solution? Any help would be appreciated!
Conengmo commentedon Nov 18, 2022
We added a new plugin called GroupedLayerControl (#1592) which might be helpful here. It will be in the upcoming 0.14.0, or you can get folium directly from our main branch now.
Other than that I'm afraid I can't help you at the moment.