Polyline
fun Polyline(data: PolylineData, properties: PolylineProperties = PolylineProperties(), state: PolylineState = rememberPolylineState(), isVisible: Boolean = true, onClick: () -> Unit = { })
Displays a polyline on the map view.
Example usages:
@Composable
fun MapScreen() {
TomTomMap() {
Polyline(
data = PolylineData(
geoPoints = listOf(POINT_A, POINT_B),
),
)
}
}Content copied to clipboard
Important: Use named parameters to avoid ambiguous method calls due to API changes.
Parameters
data
The polyline data.
properties
The styling and presentation specific properties of the polyline.
state
The UI element state of the Composable.
isVisible
Whether the marker should be visible or not.
onClick
A lambda that is called when the polyline is clicked.