mapbox-navigation-ios icon indicating copy to clipboard operation
mapbox-navigation-ios copied to clipboard

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

Open MaximAlien opened this issue 3 years ago • 4 comments

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 avatar Apr 25 '22 20:04 MaximAlien

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 avatar May 13 '22 17:05 MaximAlien

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.

macdrevx avatar May 13 '22 19:05 macdrevx

View annotations can be considered in this case as well.

MaximAlien avatar Jun 27 '22 17:06 MaximAlien

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

1ec5 avatar Jun 27 '22 17:06 1ec5