mapbox / mapbox-gl-native

Interactive, thoroughly customizable maps in native Android, iOS, macOS, Node.js, and Qt applications, powered by vector tiles and OpenGL
https://mapbox.com/mobile
Other
4.35k stars 1.33k forks source link

symbol manager click listener is triggering multiple times when iconAllowOverlap is set to true #16483

Closed Flovermeer closed 4 years ago

Flovermeer commented 4 years ago

Hi !

What's wrong
When I set the AllowIconOverlap of the SymbolManager to true, the onClickListener behaves in a strange way. When I click a symbol on the map, it is triggered multiple times. Which, in my app, leads to opening multiple dialogs.

What should've happen
Even with AllowIconOverlap set to true, the onClickListener should trigger only once.

Do I need to configure the listener to manage the overlaping icons ?

Thanks for you help !

Flovermeer commented 4 years ago

My bad, didn't see that the listener was stuck in a loop.

Sorry for bothering !