PointAnnotation

fun PointAnnotation(point: Point, onClick: (PointAnnotation) -> Boolean = { false }, pointAnnotationState: PointAnnotationState = remember { PointAnnotationState() })

Composable function to add a PointAnnotation to the Map. For convenience, if there's no need to hoist the pointAnnotationState, use PointAnnotation(point, onClick, init) with trailing lambda instead.

Parameters

point

The Point of the pointAnnotation, which represents the location of the pointAnnotation on the map.

onClick

Callback to be invoked when the PointAnnotation is clicked. The clicked PointAnnotation will be passed as parameter.

pointAnnotationState

The state holder for PointAnnotation properties.


inline fun PointAnnotation(point: Point, noinline onClick: (PointAnnotation) -> Boolean = { false }, crossinline init: PointAnnotationState.() -> Unit)

Composable function to add a PointAnnotation to the Map.

Parameters

point

The Point of the pointAnnotation, which represents the location of the pointAnnotation on the map.

onClick

Callback to be invoked when the PointAnnotation is clicked. The clicked PointAnnotation will be passed as parameter.

init

the lambda that will be applied to the remembered PointAnnotationState.