Polygon

fun Polygon(points: List<LatLng>, clickable: Boolean = false, fillColor: Color = Color.Black, geodesic: Boolean = false, holes: List<List<LatLng>> = emptyList(), strokeColor: Color = Color.Black, strokeJointType: Int = JointType.DEFAULT, strokePattern: List<PatternItem>? = null, strokeWidth: Float = 10.0f, tag: Any? = null, visible: Boolean = true, zIndex: Float = 0.0f, onClick: (Polygon) -> Unit = {})

A composable for a polygon on the map.

Parameters

points

the points comprising the vertices of the polygon

clickable

boolean indicating if the polygon is clickable or not

fillColor

the fill color of the polygon

geodesic

specifies whether to draw each segment as a geodesic

holes

the holes for the polygon

strokeColor

the stroke color of the polygon

strokeJointType

the joint type for all vertices of the polygon's outline

strokePattern

the stroke pattern for the polygon's outline

strokeWidth

specifies the polygon's stroke width, in display pixels

tag

optional tag to associate wiht the polygon

visible

the visibility of the polygon

zIndex

the z-index of the polygon

onClick

a lambda invoked when the polygon is clicked