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

Annotation click listeners - handling multiple annotations tapped at once #791

Open
chris-wickens opened this issue Nov 29, 2024 · 1 comment

Comments

@chris-wickens
Copy link

When zoomed out far enough for multiple point annotations to overlap, tapping the points results in separate callbacks to the OnPointAnnotationClickListener. I'd like to provide the option for the user to select which point they intended to tap, but the SDK doesn't provide the information of which points were tapped in one go. The only way I can think of doing this is to introduce an artificial delay to wait for each callback to be invoked, but I don't like the idea as the SDK already has a noticeable delay between the tap and the callback and I don't want to increase it further. Is there a better approach?

@maios
Copy link
Contributor

maios commented Dec 17, 2024

Hi @chris-wickens, thank you for reporting this. I created an internal issue to track the progress https://mapbox.atlassian.net/browse/MAPSFLT-192
We plan to update MapboxMaps Flutter to use platforms's v11 implementation of map content gestures, where only the top annotation will report the tap.

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

No branches or pull requests

2 participants