Skip to content

Add marker tooltip and images#141

Merged
giswqs merged 1 commit intomainfrom
tooltip
Nov 23, 2025
Merged

Add marker tooltip and images#141
giswqs merged 1 commit intomainfrom
tooltip

Conversation

@giswqs
Copy link
Copy Markdown
Member

@giswqs giswqs commented Nov 23, 2025

Fix #124 #125 #127

image

Copilot AI review requested due to automatic review settings November 23, 2025 02:45
@github-actions
Copy link
Copy Markdown

@github-actions github-actions Bot temporarily deployed to pull request November 23, 2025 02:46 Inactive
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds tooltip functionality and image support to markers in the AnyMap MapLibre implementation. The enhancement allows markers to display HTML content (including images) on hover via tooltips, complementing the existing click-based popup functionality.

  • Adds a new tooltip parameter to the add_marker() method that displays on hover
  • Updates JavaScript to handle tooltip events (mouseenter/mouseleave)
  • Provides comprehensive documentation through a new Jupyter notebook example

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
docs/examples/maplibre/marker_tooltip_example.ipynb New comprehensive example notebook demonstrating tooltip and popup usage with markers, including HTML and image support
anymap/static/maplibre_widget.js Implements tooltip functionality with mouseenter/mouseleave event handling for markers
anymap/maplibre.py Adds tooltip parameter to add_marker() method with updated documentation

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@giswqs giswqs merged commit 8081f43 into main Nov 23, 2025
15 checks passed
@giswqs giswqs deleted the tooltip branch November 23, 2025 02:48
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.

Allow images in Marker Popup Box Editable Popup Box size for Marker Add Tooltip functionality to Marker

2 participants