mapbox-maps-android icon indicating copy to clipboard operation
mapbox-maps-android copied to clipboard

There are gap between images when using PolylineAnnotationOptions.withLinePattern

Open maonanyue opened this issue 1 year ago • 0 comments

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 image

Screenshot image

maonanyue avatar Jul 04 '24 12:07 maonanyue