mapbox / mapbox/mapbox-maps-android

Line Pattern render error

Open
#2,556 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged bug :beetle:
Dominant language
Kotlin
Stars
578
Forks
161
PR merge metrics
No merged PRs in 30d

Description

I used Polyline Annotation Options and created a line with Line Pattern as follows:

PolylineAnnotationOptions() .withDraggable(false) .withLinePattern("shape_line_arrow_mapbox") .withLineWidth(10.0) .withPoints(linePoints)

display error at zoom levels, resolution error, image display is not beautiful, you can see my screenshots:
Zoom level = 16.3 OK,
Zoom level = 16.0 Resolution error

1735801368901
1735801368904

And pattern resource:
shape_line_arrow_mapbox.zip

Environment

  • Android OS version: Android 13
  • Devices affected: Mi 10, Pixel 5, Samsung S23 Ultra
  • Maps SDK Version: 11.9.0

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

Start by reproducing the PolylineAnnotationOptions example with .withLinePattern("shape_line_arrow_mapbox") on Maps SDK 11.9.0, comparing zoom 16.3 and 16.0 on the reported Android devices or an equivalent emulator. Inspect the line-pattern rendering path and use the supplied pattern resource; done means the line renders without the reported resolution artifacts across zoom levels.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
computer-graphics, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.