python-visualization / python-visualization/folium

Display GeoJsonTooltip at a pinned position

Open
#1,545 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.