mapbox-maps-flutter
mapbox-maps-flutter copied to clipboard
Is there any way of adding onTap to Layer Points?
I am not referring to annotations markers! I am referring to markers created by the creation of addSource and then addStyle using GeoJsonSource. Basically i have a list of Point features (markers) and i am currently displaying them on the map. however these markers are not interactive, i want to add onTap to each one of them. how can i do it? i searched all the documents and tried everything and i couldnt find the answer!
btw i am using source + layer because i found that annotations are not very performance friendly. seems to me mapbox cant handle much more than 30 annotations without lagging. while using source + layer mapbox can easily handle thousands of markers