python-visualization / python-visualization/folium
Display GeoJsonTooltip at a pinned position
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 7.4k
- Forks
- 2.3k
- Avg merge
- 17h 22m
- Merged PRs (30d)
- 11
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with folium.features.GeoJsonTooltip and compare the linked Leaflet choropleth example. Determine whether pinned positioning requires a Python API change, generated map behavior, or documentation; done means a supported and documented way to place the tooltip at a fixed window position.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, python
- Domain
- data-visualization, frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100