mapbox-navigation-ios
mapbox-navigation-ios copied to clipboard
Implement the ability to detect taps on the route duration annotations.
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).
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.
You can use query rendered features:
- https://github.com/mapbox/mapbox-maps-ios/blob/main/Sources/MapboxMaps/Foundation/MapboxMap.swift#L689
If you search our examples for that method, you'll find some sample uses.
View annotations can be considered in this case as well.
View annotations would also address the poor image stretching due to mapbox/mapbox-maps-ios#381.