add

open fun add(point: LatLng): PolygonOptions

Adds a vertex to the outline of the polygon being built.

Return

This PolygonOptions object with the given point added to the outline.

Parameters

point

LatLng point to be added to polygon geometry.


open fun add(points: Array<LatLng>): PolygonOptions

Adds vertices to the outline of the polygon being built.

Return

This PolygonOptions object with the given points added to the outline.

Parameters

points

LatLng points to be added to polygon geometry.