Interface ClusterRendererDescriptorExperimental

Serializable cluster descriptor.

interface ClusterRendererDescriptor {
    countField?: string;
    kind: "cluster";
    maxZoom?: number;
    radius?: number;
    steps: readonly ClusterStep[];
    unclusteredColor?: string;
    unclusteredRadius?: number;
}

Hierarchy (view full)

Properties

countField?: string

Numeric property summed per cluster instead of the raw point count. Adds a <countField>_sum cluster property and drives the step/count expressions from it.

kind
maxZoom?: number

Max zoom to cluster at (GeoJSON source clusterMaxZoom).

14
radius?: number

Cluster radius in pixels (GeoJSON source clusterRadius).

50
steps: readonly ClusterStep[]

Ascending count classes driving cluster color/size.

unclusteredColor?: string

Style for unclustered points.

"#16735b"
unclusteredRadius?: number
5