-
Couldn't load subscription status.
- Fork 325
Update SpeedLimitView to the new design
#3809
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
base: main
Are you sure you want to change the base?
Conversation
|
No breaking changes detected in MapboxCoreNavigation |
|
No breaking changes detected in MapboxNavigation |
|
|
||
| /* Label above the speed limit in an MUTCD-style speed limit sign. Keep as short as possible. */ | ||
| "SPEED_LIMIT_LEGEND" = "Max"; | ||
| "SPEED_LIMIT_LEGEND" = "Speed Limit"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is Android following similar approach? If so, do they localize this string to other languages as well? Can we re-use them?
| return | ||
| } | ||
|
|
||
| switch signStandard { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will you cover in scope of current PR drawing current speed as well?
|
|
||
| } | ||
|
|
||
| @objc dynamic public class func drawMUTCDForUS(frame targetFrame: CGRect = CGRect(x: 0, y: 0, width: 68, height: 85), resizing: ResizingBehavior = .aspectFit, signBackColor: UIColor = UIColor(red: 1.000, green: 1.000, blue: 1.000, alpha: 1.000), strokeColor: UIColor = UIColor(red: 0.000, green: 0.000, blue: 0.000, alpha: 1.000), limit: String = "50", legend: String = "SPEED LIMIT") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems to have issue with the frame size in CarPlay in active navigation. It would lead to the loss of the CompassView and the SpeedLimitView. And I think we should make the width of the SpeedLimitView as same as the CompassView in visualization on CarPlay with the new design.
52d360e to
2ff373e
Compare
Breaking Changes in MapboxNavigationBreaking API Changes
|
Breaking Changes in MapboxNavigationBreaking API Changes
|
Description
This PR is to implement the
SpeedLimitViewredesign.Implementation
Screenshots or Gifs