Skip to content

Conversation

@lopezvoliver
Copy link
Contributor

This adds ipyleaflet.Tooltip in order to use leaflet tooltips.

The user can create a "standalone" tooltip at a given location, or bind a Tooltip widget to a Layer, as demonstrated below:

ipyleaflet-tooltip-demo

@martinRenou @arjxn-py or any other maintainer, please review =)

Copy link
Member

@martinRenou martinRenou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Thanks a lot for adding documentation.

I've only found a small issue with the non-permanent tooltips, they seem to disappear whichever the location where you click, not only when you click on them:

Screencast.From.2025-06-19.13-42-17.mp4

@lopezvoliver
Copy link
Contributor Author

Looks great! Thanks a lot for adding documentation.

I've only found a small issue with the non-permanent tooltips, they seem to disappear whichever the location where you click, not only when you click on them:

Screencast.From.2025-06-19.13-42-17.mp4

I just tested this and it's the same in leaflet.js:

https://jsfiddle.net/lopezvoliver/37r4xacw/8/

I will update the comment in the doc.

Copy link
Member

@martinRenou martinRenou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@martinRenou martinRenou merged commit 290076e into jupyter-widgets:master Jun 19, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants