Feature reduction of type cluster declutters the screen by hiding features that would otherwise intersect with other features on screen. The default clusterRadius for the JavaScript API is 60.

interface FeatureReductionClusterJson {
    clusterMaxSize?: number;
    clusterMinSize?: number;
    clusterRadius?: number;
    disablePopup?: boolean;
    drawingInfo?: DrawingInfoJson;
    popupInfo?: PopupInfoJson;
    showLabels?: boolean;
    type: "cluster";
}

Properties

clusterMaxSize?: number

Size of the largest cluster, in screen units (points).

clusterMinSize?: number

Size of the smallest cluster, in screen units (points).

clusterRadius?: number

Strength of clustering, in screen units (points).

disablePopup?: boolean

Indicates whether to ignore popups defined by the service item.

drawingInfo?: DrawingInfoJson

Contains labeling information for the cluster.

popupInfo?: PopupInfoJson

Defines the look and feel of popup windows when a user clicks or queries a feature.

showLabels?: boolean

Defines whether labels should be shown in the clusters.

type

The type of feature reduction.