PolygonOptions

fun PolygonOptions(coordinates: List<GeoPoint>, outlineColor: Color = Color.TRANSPARENT, @FloatRange(from = 0.0) outlineWidth: Double = DEFAULT_OUTLINE_WIDTH, fillColor: Color = DEFAULT_FILL_COLOR, image: Image? = null, isImageOverlay: Boolean = false, isClickable: Boolean = true)

Parameters

coordinates

Coordinates of the Polygon.

outlineColor

Outline Color of the Polygon overlay.

outlineWidth

Width of the outline of the Polygon overlay.

fillColor

Main Color of the Polygon.

image

The Image that will be displayed inside of the Polygon.

isImageOverlay

If true, the Image is scaled to cover the whole polygon. If false, the original size is preserved and is repeated starting from the South-West corner of the polygon's bounding rectangle.

isClickable

Sets if the polygon is clickable, if this parameter is false then clicks will be propagated to objects that are below polygon.