CurrentLocationMarker

fun CurrentLocationMarker(properties: CurrentLocationMarkerProperties = CurrentLocationMarkerProperties(), state: CurrentLocationMarkerState = rememberCurrentLocationMarkerState(), onClick: (Offset, GeoPoint) -> Unit = { _, _ -> })

Displays a location marker on the map view.

The location of the location marker is based on the location provided by LocationProvider of the MapDisplayInfrastructure.locationInfrastructure.

Important: Use named parameters to avoid ambiguous method calls due to API changes.

Parameters

state

The UI element state of the location marker.

onClick

A lambda invoked whenever the location marker is clicked. The lambda is provided with the Offset and the GeoPoint of the location marker.