PolylineManager

open class PolylineManager : MapObjectManager<O, C> , GoogleMap.OnPolylineClickListener

Keeps track of collections of polylines on the map. Delegates all Polyline-related events to each collection's individually managed listeners.

All polyline operations (adds and removes) should occur via its collection class. That is, don't add a polyline via a collection, then remove it via Polyline.remove()

Constructors

Link copied to clipboard
constructor(@NonNull map: GoogleMap)

Types

Link copied to clipboard
open class Collection : MapObjectManager.Collection

Functions

Link copied to clipboard
open fun getCollection(id: String): C
Gets a named collection that was created by newCollection
Link copied to clipboard
open fun newCollection(id: String): C
Create a new named collection, which can later be looked up by getCollection
Link copied to clipboard
open fun onPolylineClick(@NonNull polyline: Polyline)
Link copied to clipboard
open fun remove(object: O): Boolean
Removes an object from its collection.