addPolygon

open fun addPolygon(@NonNull polygonOptions: PolygonOptions): Polygon

Deprecated

As of 7.0.0, use MapLibre Annotation Plugin instead

Adds a polygon to this map.

Return

The Polygon that was added to the map.

Parameters

polygonOptions

A polygon options object that defines how to render the polygon.