mapbox / mapbox/mapbox-navigation-android

Line casing opacity

Open
#4,772 20 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

jira-sync-complete
Dominant language
Kotlin
Stars
651
Forks
321
PR merge metrics
No merged PRs in 30d

Description

Hi,

We are currently working on a new design in our company and achieve a design similar to this.
The reasons are that :
* it will make street names visible
* Make bike lanes visible and not covered by the line

in Mapbox Navigation 2.0 we can indeed provide a color for the casing but since it's a wider line below the other one having a full opaque casing isn't possible like in the screenshot below.

Screenshot 2021-08-30 at 13 57 56

Will there be a possibility to achieve something like this in the future?

Also, while playing with the opacity in navigation, I get those artifacts :
Screenshot 2021-08-30 at 14 07 48
Would it make sense to have the ability to set the lineCap and lineJoin to avoid this effect?

Thank you very much in advance

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file, test, or entry point is named. Start by reproducing the reported line-casing opacity artifacts from the screenshots and trace the navigation rendering path; done would require a decided, testable scope for translucent casing and lineCap or lineJoin support.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
design, mobile-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.