folium icon indicating copy to clipboard operation
folium copied to clipboard

Display GeoJsonTooltip at a pinned position

Open tguegan opened this issue 4 years ago • 0 comments

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

tguegan avatar Dec 03 '21 11:12 tguegan