Polygon

data class Polygon(val coordinates: List<Coordinates>, val lineWidth: Float, val color: Color? = null, val lineColor: Color? = null)

Represents a polygon overlay on the map.

Parameters

coordinates

List of coordinates that define the polygon's vertices

lineWidth

The width of the polygon's border

color

The fill color of the polygon

lineColor

The color of the polygon's border

Constructors

Link copied to clipboard
constructor(coordinates: List<Coordinates>, lineWidth: Float, color: Color? = null, lineColor: Color? = null)

Properties

Link copied to clipboard
val color: Color? = null
Link copied to clipboard
Link copied to clipboard
val lineColor: Color? = null
Link copied to clipboard