mapbox-maps-android
mapbox-maps-android copied to clipboard
There are gap between images when using PolylineAnnotationOptions.withLinePattern
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