ClusterItem

interface ClusterItem(source)

An item that a ClusterManager groups into clusters.

Example:

class Shop(private val position: LatLng, private val name: String) : ClusterItem {
override fun getPosition() = position
override fun getTitle() = name
override fun getSnippet(): String? = null
}

Functions

Link copied to clipboard
abstract fun getPosition(): LatLng

The position of the item.

Link copied to clipboard
abstract fun getSnippet(): String?

The snippet of the item's marker, shown in its info window, or null.

Link copied to clipboard
abstract fun getTitle(): String?

The title of the item's marker, shown in its info window, or null.

Link copied to clipboard
open fun getZIndex(): Float?

The drawing order of the item's marker, or null for the default.