User puck rotation should account for horizontal content insets #1681
Labels
bug
Something isn’t working
CarPlay
Bugs, improvements and feature requests on Apple CarPlay
topic: design
Milestone
When tracking the user’s course, UserCourseView’s arrow points in a direction determined by a CLHeading object, assuming that UserCourseView is located above the visual center of the map view, and that map’s vanishing point is located directly above UserCourseView. When the map view has a left or right content inset, the route line and UserCourseView are shifted to the side, while the map’s vanishing point remains horizontally centered due to mapbox/mapbox-gl-native#12728.
For example, in CarPlay, there is a wide content inset on the driver’s side to accommodate maneuver panels. When both the route and the user go due north, the route line is slanted towards the driver’s side while UserCourseView’s arrow nonetheless points straight up.
The 3D transform for UserCourseView’s arrow needs to account for horizontal content insets. The correction might end up depending on the pitch. As with mapbox/mapbox-gl-native#5245, it may be necessary to fudge the transform matrix’s
m34
./cc @mapbox/navigation-ios @d-prukop
The text was updated successfully, but these errors were encountered: