p-lr / MapCompose

A fast, memory efficient Jetpack Compose library to display tiled maps, with support for markers, paths, and rotation.
Apache License 2.0
220 stars 19 forks source link

Paths have no way to specify ending "caps" #86

Closed Nohus closed 1 year ago

Nohus commented 1 year ago

Drawn paths end with a sharp cut off:

image

When using the Google Maps Compose library, you are able to specify how paths end, with the startCap and endCap parameters: https://googlemaps.github.io/android-maps-compose/maps-compose/com.google.maps.android.compose/-polyline.html

Here is an example of a path in Google Maps Compose using RoundCap. Notice how the end of the line is nicely rounded:

image

p-lr commented 1 year ago

This can be done but the implementation will depend on #85