mapbox-maps-flutter icon indicating copy to clipboard operation
mapbox-maps-flutter copied to clipboard

Is there any way of adding onTap to Layer Points?

Open ember11498 opened this issue 1 year ago • 2 comments

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

ember11498 avatar Jun 06 '23 23:06 ember11498