removePolygons

abstract fun removePolygons(tag: String? = null)

Removes all Polygon elements with the provided tag from the map. If tag is null then all polygons that don't have a tag will be removed. The tag is set with the PolygonOptions.tag property.

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

Parameters

tag

The tag which identifies the group of polygons.