mapbox / mapbox/mapbox-maps-android

Line with offset and round caps produces rendering artifacts

Open
#566 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

:stop_sign: blocked auto-triaged bug :beetle: p3
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

Screenshot_1628846740

Screenshot_1628846849
Screenshot_1628846748
Screenshot_1628846832

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.