DefaultAdvancedMarkersClusterRenderer

The default view for a ClusterManager. Markers are animated in and out of clusters.

Constructors

Link copied to clipboard
constructor(context: Context, map: GoogleMap, clusterManager: ClusterManager<T>)

Functions

Link copied to clipboard
open fun getCluster(marker: Marker): Cluster<T>
Get the Cluster from a marker
Link copied to clipboard
open fun getClusterItem(marker: Marker): T
Get the ClusterItem from a marker
Link copied to clipboard
open fun getClusterTextAppearance(clusterSize: Int): Int
Called to determine the text appearance of a cluster.
Link copied to clipboard
open fun getColor(clusterSize: Int): Int
Called to determine the color of a Cluster.
Link copied to clipboard
open fun getMarker(clusterItem: T): Marker
Get the marker from a ClusterItem
open fun getMarker(cluster: Cluster<T>): Marker
Get the marker from a Cluster
Link copied to clipboard
Gets the minimum cluster size used to render clusters.
Link copied to clipboard
open fun onAdd()
Called when the view is added.
Link copied to clipboard
open fun onClustersChanged(clusters: Set<out Cluster<T>>)
Called when the view needs to be updated because new clusters need to be displayed.
Link copied to clipboard
open fun onRemove()
Called when the view is removed.
Link copied to clipboard
open fun setAnimation(animate: Boolean)
Called to set animation on or off
Link copied to clipboard
open fun setAnimationDuration(animationDurationMs: Long)
Sets the length of the animation in milliseconds.
Link copied to clipboard
open fun setMinClusterSize(minClusterSize: Int)
Sets the minimum cluster size used to render clusters.