mapbox / mapbox/mapbox-maps-android
Line Pattern render error
Nobody has claimed this yet.
- 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
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
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
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