mapbox / mapbox/mapbox-maps-android
Line with offset and round caps produces rendering artifacts
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 578
- Forks
- 161
- PR merge metrics
- No merged PRs in 30d
Description
Hey folks, here is a rendering issue I ran into when using
- a line layer
- a line width of x
- a line offset of x
- round line joins and caps
it looks like the polygon's vertices don't get properly displaced and rendered then, leading to rendering artifacts.
Check out the screenshots below from the Android emulator (x86), and the artifacts at the polygon vertices / corners.
I'm on the maps sdk v10.0.0-rc.6




Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the reported line layer with width, offset, and round joins/caps on the Android emulator using the screenshots and SDK version as reference. Trace the rendering path for offset line geometry and verify completion when polygon vertices and corners render without artifacts; no source file or test is named in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- computer-graphics, mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100