folium
folium copied to clipboard
Display GeoJsonTooltip at a pinned position
Hi, I'm facing an issue and I can't find any help on your documentation. My probem is simple, I want a tooltip that displays my informations and giving it a pinned position within the window, let's say top right corner. How can I achieve that?
For instance I want to reproduce this map (1st one): https://leafletjs.com/examples/choropleth/
Thank you!
### Add a tooltip (hover mode) to the choropleth
choropleth_instance.geojson.add_child(
folium.features.GeoJsonTooltip(
fields = ['name', 'data1', 'days'],
aliases=['Lon / Lat:', 'Data 1:', 'Days:'],
sticky=False)
)
Version: 0.12.1