Skip to content
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

Implement the ability to detect taps on the route duration annotations. #3847

Closed
MaximAlien opened this issue Apr 25, 2022 · 4 comments · Fixed by #4133
Closed

Implement the ability to detect taps on the route duration annotations. #3847

MaximAlien opened this issue Apr 25, 2022 · 4 comments · Fixed by #4133
Assignees
Labels
jira-sync-complete UI Work related to visual components, Android Auto, Camera, 3D, voice, etc.

Comments

@MaximAlien
Copy link
Contributor

At this point NavigationMapView.showRouteDurations(along:) allows to show route duration annotations for a list of routes. In scope of this ticket user should be given the ability to detect taps on such annotation (similarly to waypoints and routes).

@MaximAlien MaximAlien added the UI Work related to visual components, Android Auto, Camera, 3D, voice, etc. label Apr 25, 2022
@MaximAlien
Copy link
Contributor Author

These annotations are shown as a SymbolLayer provided by Maps SDK, @mapbox/maps-ios do you have any suggestions here? What would be the best way to detect tap on such SymbolLayer.

@MaximAlien MaximAlien self-assigned this May 13, 2022
@macdrevx
Copy link

You can use query rendered features:

If you search our examples for that method, you'll find some sample uses.

@MaximAlien
Copy link
Contributor Author

View annotations can be considered in this case as well.

@1ec5
Copy link
Contributor

1ec5 commented Jun 27, 2022

View annotations would also address the poor image stretching due to mapbox/mapbox-maps-ios#381.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
jira-sync-complete UI Work related to visual components, Android Auto, Camera, 3D, voice, etc.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants