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

PointAnnotationManager.addOnPointAnnotationClickListener is shared between all PointAnnotationManagers #862

Open
j-bbr opened this issue Feb 10, 2025 · 5 comments

Comments

@j-bbr
Copy link

j-bbr commented Feb 10, 2025

When creating multiple PointAnnotationManager and adding OnPointAnnotationClickListener to them I found that only the last listener is called. This is especially counter intuitive since the listener is added to the individual AnnotationManager but click listeners are apparently shared at the map level.

@maios
Copy link
Contributor

maios commented Feb 13, 2025

Hi @j-bbr, could you provide which MapboxMaps SDK version are you using? We have recently addressed an issue with annotation's click listener being registered without channel suffix here, this fix is released in our v2.4.1.
If you are using an older version of our SDK, please update to use the latest one, if not, please let me know here and I will create a ticket and work on it asap

@j-bbr
Copy link
Author

j-bbr commented Feb 17, 2025

Hi, @maios I am on version 2.5.0

@brandon-watkins-avcrm
Copy link

Seeing this same issue with 2.6.0 @maios. This is a blocking bug stopping us from releasing :(

@ahmadrana24
Copy link

Any update on this one?

@brandon-watkins-avcrm
Copy link

Ended up changing the implementation to not use the PointAnnotationManager at all and instead add points to the map using style layers and GeoJson

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

4 participants