Draw a line
#403
-
I see LineLayer exists, but for GeoJonsSource, we can't provide a list of points like org.maplibre.geojson.fromLngLats. We should pass a JSON string. Is that normal, or did I misunderstand something? |
Beta Was this translation helpful? Give feedback.
Answered by
sargunv
Jun 3, 2025
Replies: 1 comment
-
You can pass a GeoJson object, one option is a LineString which takes a |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
sargunv
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can pass a GeoJson object, one option is a LineString which takes a
List<Position>
https://maplibre.org/maplibre-compose/api/lib/maplibre-compose/dev.sargunv.maplibrecompose.compose.source/remember-geo-json-source.html
https://dellisd.github.io/spatial-k/api/geojson/io.github.dellisd.spatialk.geojson/-line-string/index.html