Polygon Options
Builder class for creating Polygon instances with a fluent API. Matches the Google Maps API pattern for polygon configuration.
Example usage:
val polygon = PolygonOptions()
.add(LatLng(51.5, 0.0))
.add(LatLng(51.6, 0.0))
.add(LatLng(51.6, 0.1))
.strokeColor(Color.Red)
.fillColor(Color(red = 255, green = 0, blue = 0, alpha = 128))
.clickable(true)Functions
Adds a vertex to the outline of the polygon.
Adds vertices to the outline of the polygon.
Adds a hole to the polygon.
Sets whether the polygon is clickable.
Sets the fill color of the polygon interior.
Sets whether segments are drawn as geodesics (great-circle paths).
Sets the stroke cap style for line endpoints.
Sets the stroke color of the polygon outline.
Sets the stroke join style for line corners.
Sets the stroke pattern of the polygon outline (dashed, dotted, etc.).
Sets the stroke width of the polygon outline in pixels.
Sets optional user data associated with the polygon.
Sets whether the polygon is visible.
Sets the z-index for draw order.