PolylineController

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

Inheritors

Functions

Link copied to clipboard
abstract fun addPolyline(options: PolylineOptions): Polyline

Adds a new Polyline based on the given PolylineOptions.

Link copied to clipboard

Registers the PolylineClickListener that will be notified about any Polyline being clicked. The clicked Polyline becomes a parameter of the PolylineClickListener.onPolylineClicked callback.

Link copied to clipboard
Link copied to clipboard
abstract fun removePolylines(tag: String? = null)

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