PolygonAnnotation

fun PolygonAnnotation(points: List<List<Point>>, onClick: (PolygonAnnotation) -> Boolean = { false }, polygonAnnotationState: PolygonAnnotationState = remember { PolygonAnnotationState() })

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

Parameters

points

A list of lists of Point for the fill, which represents the locations of the fill on the map.

onClick

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

polygonAnnotationState

The state holder for PolygonAnnotation properties.


inline fun PolygonAnnotation(points: List<List<Point>>, noinline onClick: (PolygonAnnotation) -> Boolean = { false }, crossinline init: PolygonAnnotationState.() -> Unit)

Composable function to add a PolygonAnnotation to the Map.

Parameters

points

A list of lists of Point for the fill, which represents the locations of the fill on the map.

onClick

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

init

the lambda that will be applied to the remembered PolygonAnnotationState.