CircleAnnotation

fun CircleAnnotation(point: Point, onClick: (CircleAnnotation) -> Boolean = { false }, circleAnnotationState: CircleAnnotationState = remember { CircleAnnotationState() })

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

Parameters

point

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

onClick

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

circleAnnotationState

The state holder for CircleAnnotation properties.


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

Composable function to add a CircleAnnotation to the Map.

Parameters

point

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

onClick

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

init

the lambda that will be applied to the remembered CircleAnnotationState.