Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Popup on hover example is not changing popup when mouse moves to another overlapping feature #5327

Open
matthiasschwarz opened this issue Jan 10, 2025 · 1 comment
Labels
enhancement New feature or request PR is more than welcomed Extra attention is needed

Comments

@matthiasschwarz
Copy link

maplibre-gl-js version: 5.0.0

browser: Chromium 131.0.6778.265

Steps to Trigger Behavior

  1. Adjust zoom to have atleast two overlapping features
  2. Move mouse to a feature to show popup
  3. Move mouse to another feature without leaving any feature

Link to Demonstration

Popup on hover example

Expected Behavior

Popup changes to the topmost shown feature.

Actual Behavior

popup.on.hover.bug.mp4

Popup doesn't change when moving to another overlapping feature. This is caused by the mouseenter event not triggered again because we didn't leave the layer while moving to the other feature.

@HarelM
Copy link
Collaborator

HarelM commented Jan 12, 2025

You are welcome to open a PR to improve the example.
Keep in mind that we do want to keep the examples short and precise, as they are not intended to be bug free, but more of an example of how something can be achieved.

@HarelM HarelM added enhancement New feature or request PR is more than welcomed Extra attention is needed labels Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request PR is more than welcomed Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants