CircleManager

open class CircleManager : MapObjectManager<O, C> , GoogleMap.OnCircleClickListener

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

All circle operations (adds and removes) should occur via its collection class. That is, don't add a circle via a collection, then remove it via Circle.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 onCircleClick(@NonNull circle: Circle)
Link copied to clipboard
open fun remove(object: O): Boolean
Removes an object from its collection.