folium icon indicating copy to clipboard operation
folium copied to clipboard

Attach html to feature group

Open kathrynhamilton opened this issue 6 years ago • 1 comments

I am looking to add an HTML legend at the bottom corner of each layer. The legend will be different per layer.

I can add an HTML legend to the base map using map.get_root().html.add_child(<html>), however this will only display the same text for all layer. I am looking instead for a method to attach html to a feature group, ie, something like feature_group.get_root().html.add_child(<html>).

kathrynhamilton avatar Mar 04 '19 15:03 kathrynhamilton

Heyy, I am looking for the answer, someone kow how to do that ?

rgox avatar Jun 03 '21 15:06 rgox