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.

Parameters

tag

The tag which identifies the group of polygons.