Cluster Options
data class ClusterOptions @JvmOverloads() constructor(cluster: Boolean, clusterRadius: Long, circleRadiusExpression: Value?, circleRadius: Double, textColorExpression: Value?, textColor: Int, textSizeExpression: Value?, textSize: Double, textField: Value?, clusterMaxZoom: Long, colorLevels: List<Pair<Int, Int>>, clusterProperties: HashMap<String, Any>?)
Content copied to clipboard
Options to show and configure symbol clustering with using SymbolManager.
It exposes a minimal of configuration options, a more advanced setup can be created manually with using CircleLayer and SymbolLayers directly.
Constructors
ClusterOptions
Link copied to clipboard
@JvmOverloads()
Content copied to clipboard
Functions
component1
Link copied to clipboard
component10
Link copied to clipboard
component11
Link copied to clipboard
component12
Link copied to clipboard
component2
Link copied to clipboard
component3
Link copied to clipboard
component4
Link copied to clipboard
component5
Link copied to clipboard
component6
Link copied to clipboard
component7
Link copied to clipboard
component8
Link copied to clipboard
component9
Link copied to clipboard
copy
Link copied to clipboard
fun copy(cluster: Boolean = true, clusterRadius: Long = 50, circleRadiusExpression: Value? = null, circleRadius: Double = 18.0, textColorExpression: Value? = null, textColor: Int = Color.WHITE, textSizeExpression: Value? = null, textSize: Double = 12.0, textField: Value? = null, clusterMaxZoom: Long = 14, colorLevels: List<Pair<Int, Int>> = listOf(Pair(0, Color.BLUE)), clusterProperties: HashMap<String, Any>? = null): ClusterOptions
Content copied to clipboard
Properties
circleRadius
Link copied to clipboard
The circle radius of the cluster items in expression, literal(18) by default
circleRadiusExpression
Link copied to clipboard
The circle radius of the cluster items in expression.
clusterMaxZoom
Link copied to clipboard
Max zoom on which to cluster points if clustering is enabled.
clusterProperties
Link copied to clipboard
An object defining custom properties on the generated clusters if clustering is enabled, aggregating values from clustered points.
clusterRadius
Link copied to clipboard
Radius of each cluster if clustering is enabled.
colorLevels
Link copied to clipboard
The cluster color levels, which a pair constructed with amount of point and a int color value.
textColorExpression
Link copied to clipboard
The text color of cluster item in expression.
textSizeExpression
Link copied to clipboard
The text size of cluster item in expression.