sdk-maps / com.tomtom.online.sdk.map / MarkerSettings / setMarkersClustering

setMarkersClustering

abstract fun setMarkersClustering(enabled: Boolean): Unit

Turn on / off markers clustering. By default, clustering is not enabled.

abstract fun setMarkersClustering(enabled: Boolean, radius: Int, maxZoom: Int): Unit

Turn on / off markers clustering and provide custom parameters to customize the algorithm. By default, clustering is not enabled, maximum zoom level is set to 16 and radius is set to 50.

Parameters

radius - Minimum distance in pixels between markers that defines whether they should be clustered or not.

maxZoom - Maximum zoom level to cluster the points on.