-
Notifications
You must be signed in to change notification settings - Fork 318
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
Update SpeedLimitView
to the new design
#3809
base: main
Are you sure you want to change the base?
Conversation
No breaking changes detected in MapboxCoreNavigation |
No breaking changes detected in MapboxNavigation |
@@ -227,7 +227,7 @@ | |||
"ROUTE_QUALITY_ROADS_TOO_NARROW_FEEDBACK" = "Route had roads too narrow to pass"; | |||
|
|||
/* 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?
@@ -134,8 +136,13 @@ public class SpeedLimitView: UIView { | |||
|
|||
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?
@@ -91,6 +91,82 @@ public class SpeedLimitStyleKit : NSObject { | |||
|
|||
} | |||
|
|||
@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
SpeedLimitView
redesign.Implementation
Screenshots or Gifs