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
fill Color
the fill color of the polygon
geodesic
specifies whether to draw each segment as a geodesic
holes
the holes for the polygon
stroke Color
the stroke color of the polygon
stroke Joint Type
the joint type for all vertices of the polygon's outline
stroke Pattern
the stroke pattern for the polygon's outline
stroke Width
specifies the polygon's stroke width, in display pixels
tag
optional tag to associate wiht the polygon
visible
the visibility of the polygon
z Index
the z-index of the polygon
on Click
a lambda invoked when the polygon is clicked