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

onTapListener doesn't work after adding GeoJsonSource to a SymbolLayer. #793

Open
mahdidahouei opened this issue Nov 30, 2024 · 3 comments

Comments

@mahdidahouei
Copy link

I'm using mapbox to show a large number of symbols using GeoJson source. I want the symbols to be selected when users taps on them. but onTapListener callback isn't called when there is symbol layer on map. I've implement the select functionality inside onLongTapListener listener and it works perfectly even when there is symbol layer on map but onTapListener doesn't work!

@mahdidahouei
Copy link
Author

I figured out that this only doesn't work on android. It works on ios correctly

@hiloliddinj
Copy link

I am also facing same problem. Only on Android when shaded region (inside Polygona) is clicked onTapListener is not working. But works when outside is clicked. on iOS we do not have nay problem it works fine.

@mahdidahouei
Copy link
Author

mahdidahouei commented Dec 11, 2024

My problem was also caused by polygon.
I've wrapped the city with a polygon and that made the onTapListener not work only on android!

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