-
Notifications
You must be signed in to change notification settings - Fork 312
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
Reimplement current road name label atop navigator status/electronic horizon #1440
Comments
The line style layer isn’t really invisible: it just happens to be occluded most of the time by the road, landcover, and water layers. So we’ll need to ensure that the added line style layer is no wider than the existing layer for that road. |
Turns out #1076 quietly slipped in a fix for this issue. Now the line is 20 points wide. Not sure if that has improved the reliability at all.
The Mapbox Streets source reference lists the valid |
Per mapbox/mapbox-navigation-android#1016 (comment), we can avoid false positives in the form of bike paths while driving by filtering the style layer by road class. |
…tails for textColor and fillColor for current road feature.
…tails for textColor and fillColor for current road feature.
… Updated route map view controller to integrate the new changes in the highway shield struct.
… Updated route map view controller to integrate the new changes in the highway shield struct. Co-authored-by: Jerrad Thramer <[email protected]> Co-authored-by: Vincent Sam <[email protected]>
…lass used within the highway shield struct.
…f text and image for road name label attachment. Refactor to retrieve the appropriate attachment for current shields on a road along the route.
…the current polyline and multipolyline features. Updates to return the original full format of the rawValue init with HighwayShield.
#2456 would add the current road name outside of turn-by-turn navigation using a more reliable source. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
As of #2410, PassiveLocationDataSource posts a notification on each location update that contains the current road name, but only during free-driving, not during turn-by-turn navigation. This information is much more reliable than feature querying because it relies on map matching, which respects the road network’s topology unlike the map tiles. During both free-driving and turn-by-turn navigation, the electronic horizon feature added in #2834 posts a notification on each location update that contains the current road name and ref, among other information. This would be a shoe-in replacement for feature querying, except that the e-horizon notification does not include enough information to choose a route shield. So we probably would need to retain the feature querying step but use the e-horizon information to more reliably choose from among the feature querying results. That would allow us to remove the gangliest part of the feature querying code. |
It's fixed in #3019 . |
#590 (comment) pointed out examples of the current road name label being unreliable, resulting in the user puck being off from the street source, failing to pick up the road name. A solid fix for this issue would require significant changes to the Directions API, but we do have opportunities to improve the quality of our vector tile–powered workaround:
mapbox-navigation-ios/MapboxNavigation/RouteMapViewController.swift
Line 776 in 026fddd
ref
attribute provides only the bare number in most cases, not the prefix or shield that we’re accustomed to from the Directions API. But we can use theshield
andreflen
attributes to get the shield image from the style and insert it into the label as part of an attributed string. The style images should already look pretty crisp at the size needed for that label./cc @mapbox/navigation-ios @danesfeder
The text was updated successfully, but these errors were encountered: