PointAnnotation

fun PointAnnotation(point: Point, 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, init) with trailing lambda instead.

Parameters

point

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

pointAnnotationState

The state holder for PointAnnotation properties.


inline fun PointAnnotation(point: Point, 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.

init

the lambda that will be applied to the remembered PointAnnotationState.


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

Deprecated

This method is deprecated, and will be removed in next major release.

Replace with

PointAnnotation(point, 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)

Deprecated

This method is deprecated, and will be removed in next major release.

Replace with

PointAnnotation(point, init)

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.