addPolygon

abstract fun addPolygon(options: PolygonOptions): Polygon

Adds a new Polygon based on the given PolygonOptions.

Important: This is a Public Preview API. It may be changed or removed at any time.

Return

Polygon instance with the assigned UniqueId.

Parameters

options

PolygonOptions describing the desired properties of the Polygon.