PolygonController

interface PolygonController

Controls Polygon-specific features on the map. Allows Polygon management and the user interactions with the Polygon.

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

Functions

Link copied to clipboard
abstract fun addOnPolygonClickListener(listener: OnPolygonClickListener)

Registers the OnPolygonClickListener that will be notified about any Polygon being clicked. The clicked Polygon becomes a parameter of the OnPolygonClickListener.onPolygonClicked callback.

Link copied to clipboard
abstract fun addPolygon(options: PolygonOptions): Polygon

Adds a new Polygon based on the given PolygonOptions.

Link copied to clipboard
abstract fun removeOnPolygonClickListener(listener: OnPolygonClickListener)
Link copied to clipboard
abstract fun removePolygons()

Removes all Polygon elements from the map.

Properties

Link copied to clipboard
abstract val polygons: List<Polygon>

Returns all currently added Polygon elements.

Inheritors

Link copied to clipboard