mapbox / mapbox/mapbox-maps-android
There are gap between images when using PolylineAnnotationOptions.withLinePattern
Open
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
Environment
- Android OS version: All
- Devices affected: All
- Maps SDK Version: com.mapbox.maps:android:10.18.2
Observed behavior and steps to reproduce
private fun addNavSportTrackLine(
points: List<Point>,
line: RouteLine
): PolylineAnnotation {
val polylineAnnotationOptions = PolylineAnnotationOptions()
.withLineWidth(lineWidth)
.withPoints(points)
.withData(JsonPrimitive(line.style.number))
line.patterType2?.let {
polylineAnnotationOptions.withLinePattern(ExploreImgCfg.getPatterKeyByType(it))
}
line.width?.let {
polylineAnnotationOptions.withLineWidth(it.toDouble())
}
return polySportTrackLineManager.create(polylineAnnotationOptions)
}
Expected behavior
Without gap between images
Notes / preliminary analysis
Additional links and references
sprite image
Screenshot
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 with the addNavSportTrackLine entry point and its PolylineAnnotationOptions.withLinePattern usage on com.mapbox.maps:android:10.18.2. Reproduce the supplied patterned-line example on Android and compare it with the expected rendering; done when the repeated images render without gaps.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100