addPolygon

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

Deprecated

Adds a polygon to this map.

Return

The Polygon that was added to the map.

Deprecated

As of 7.0.0, use MapLibre Annotation Plugin instead

Parameters

polygonOptions

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