-
Notifications
You must be signed in to change notification settings - Fork 113
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
How can I get the position of the clicked polylineAnnotation #699
Comments
@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. |
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.
The text was updated successfully, but these errors were encountered: