Cluster Manager
open class ClusterManager<T : ClusterItem?> : GoogleMap.OnCameraIdleListener, GoogleMap.OnMarkerClickListener, GoogleMap.OnInfoWindowClickListener
Groups many items on a map based on zoom level.
ClusterManager should be added to the map as an:
- com.google.android.gms.maps.GoogleMap.OnCameraIdleListener
- com.google.android.gms.maps.GoogleMap.OnMarkerClickListener
Types
Link copied to clipboard
Called when a Cluster is clicked.
Link copied to clipboard
Called when a Cluster's Info Window is clicked.
Link copied to clipboard
Called when a Cluster's Info Window is long clicked.
Link copied to clipboard
Called when an individual ClusterItem is clicked.
Link copied to clipboard
Called when an individual ClusterItem's Info Window is clicked.
Link copied to clipboard
Called when an individual ClusterItem's Info Window is long clicked.
Functions
Link copied to clipboard
Adds items to clusters.
Link copied to clipboard
Removes all items from the cluster manager.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Might re-cluster.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Removes an item from clusters.
Link copied to clipboard
Removes items from clusters.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Sets a callback that's invoked when a Cluster is tapped.
Link copied to clipboard
open fun setOnClusterInfoWindowClickListener(listener: ClusterManager.OnClusterInfoWindowClickListener<T>)
Sets a callback that's invoked when a Cluster info window is tapped.
Link copied to clipboard
open fun setOnClusterInfoWindowLongClickListener(listener: ClusterManager.OnClusterInfoWindowLongClickListener<T>)
Sets a callback that's invoked when a Cluster info window is long-pressed.
Link copied to clipboard
Sets a callback that's invoked when an individual ClusterItem is tapped.
Link copied to clipboard
open fun setOnClusterItemInfoWindowClickListener(listener: ClusterManager.OnClusterItemInfoWindowClickListener<T>)
Sets a callback that's invoked when an individual ClusterItem's Info Window is tapped.
Link copied to clipboard
open fun setOnClusterItemInfoWindowLongClickListener(listener: ClusterManager.OnClusterItemInfoWindowLongClickListener<T>)
Sets a callback that's invoked when an individual ClusterItem's Info Window is long-pressed.
Link copied to clipboard
Link copied to clipboard
Updates an item in clusters.