PolygonManager

open class PolygonManager : MapObjectManager<O, C> , GoogleMap.OnPolygonClickListener

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

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

Constructors

Link copied to clipboard
constructor(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 onPolygonClick(@NonNull polygon: Polygon)
Link copied to clipboard
open fun remove(object: O): Boolean
Removes an object from its collection.