Open lantah-1 opened 1 month ago
@lantah-1 I don't think you can get that from this listener
@lantah-1 I don't think you can get that from this listener
My app needs to know which point on the route was clicked. How can I get it?
I think currently the only way to do that is to add your own click listener that will give you screen coordinates and then pass them to the 'queryRenderedFeatures' method.
We plan to pass touch coordinates along with the annotation though.
I think currently the only way to do that is to add your own click listener that will give you screen coordinates and then pass them to the 'queryRenderedFeatures' method.
This callback returns true, which causes the map's onMapClick method to not be called back.
We plan to pass touch coordinates along with the annotation though.
Looking forward to it !!!
final manager = await mapboxMap.annotations.createPolylineAnnotationManager(); manager.addOnPolylineAnnotationClickListener(_LineAnnotationClickListener((an) { // How can i get the position of clicked event }));
@evil159 can you help me ? thanks very much.