Skip to content

Conversation

@1ec5
Copy link
Contributor

@1ec5 1ec5 commented Mar 23, 2021

This PR expands the repertoire of supported turn lane configurations.

Added another single-use lane configuration:

Straight Slight right Right Sharp right U-turn
✔️ ✔️ ✔️ 🆕 ✔️

Added many dual-use lane configurations:

  Straight Slight right Right Sharp right U-turn
Sharp left
Left 🆕
Slight left
Straight 🆕 ✔️ 🆕 🆕
Slight right 🆕 🆕 🆕
Right 🆕 🆕
Sharp right

Added a couple very common triple-use lane configurations:

    Straight Slight right Right Sharp right U-turn
Straight Left 🆕
Straight Right 🆕

The remaining configurations are either redundant (since each asset can be flipped based on the flipHorizontally parameter) or rare (or nonexistent) in OpenStreetMap.

Renamed all the lane assets according to the format “lane ___ not ___ or ___” to reduce confusion. Clients will need to update any code that calls into the StyleKit drawing methods, which have consequently been renamed.

With these changes, there are many more turn lane shapes than there were before. To minimize the number of assets, single-color dual-use icons are no longer included. The “straight or right turn” asset has been deleted. To show a turn lane that should not be taken at all, set the primary and secondary color parameters to the same muted color.

Fixes #8.

/cc @mapbox/mobile-navigation-team @avi-c @d-prukop

1ec5 added 2 commits March 22, 2021 18:33
Added a lone sharp turn configuration. Added most dual-use configurations, except for some tricky combinations that rarely if ever occur in OpenStreetMap data. Added some common triple-use configurations.
@1ec5 1ec5 added this to the v2.0.0 (GA) milestone Mar 23, 2021
@1ec5 1ec5 self-assigned this Mar 23, 2021
@1ec5
Copy link
Contributor Author

1ec5 commented Mar 23, 2021

lanes

@1ec5 1ec5 requested review from abhishek1508 and avi-c March 23, 2021 02:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add more lane configurations

2 participants