Polygon
constructor(points: List<LatLng>, strokeColor: Color = Color.Black, strokeWidth: Float = 10.0f, strokePattern: PathEffect? = null, pattern: List<PatternItem>? = null, strokeCap: StrokeCap = StrokeCap.Butt, strokeJoin: StrokeJoin = StrokeJoin.Round, fillColor: Color = Color(red = 128, green = 128, blue = 128, alpha = 128), holes: List<List<LatLng>> = emptyList(), geodesic: Boolean = false, visible: Boolean = true, clickable: Boolean = false, zIndex: Float = 0.0f, tag: Any? = null)(source)
Parameters
points
the geographic coordinates of the outline, at least 3; the last point connects to the first
stroke Color
the outline color
stroke Width
the outline width in pixels
stroke Pattern
the stroke pattern, e.g. dashed; null for a solid line
pattern
the stroke pattern as dots, dashes and gaps, used instead of strokePattern if not null
stroke Cap
the shape of line ends
stroke Join
the shape of the corners
fill Color
the color of the interior
holes
holes cut out of the interior, each with at least 3 points
geodesic
whether segments are drawn as great-circle paths instead of straight lines on the Mercator map
visible
whether the polygon is visible
clickable
whether a tap on the polygon is reported to its click listener
z Index
draw order: polygons with a higher zIndex are drawn on top
tag
optional user data