mapbox-navigation-ios
mapbox-navigation-ios copied to clipboard
[Known issue] Custom location puck disables map matching
In NavSDK 2.12.0 and older, usage of custom Puck2DConfiguration to replace the default navigation puck with a custom icon leads to map matching being disabled, which means the locations puck will no longer snap to the roads.
This is considered a known issue and there is a temporary workaround we propose:
Use UserLocationStyle.courseView with a custom subclass of UserCourseView instead of using .puck2d.
Here is a ready-to-use implementation: CustomCourseView.swift