@honua/sdk-js
    Preparing search index...

    Interface ClusterRendererExperimental

    Cluster renderer object.

    interface ClusterRenderer {
        kind: "cluster";
        legendItems(): readonly RendererLegendItem[];
        toJSON(): ClusterRendererDescriptor;
        toMapLibre(
            geometry: RendererGeometryType,
        ): readonly RendererLayerFragment[];
        toMapLibreSource(): Record<string, unknown>;
        visualVariableLegends?(): readonly VisualVariableLegend[];
    }

    Hierarchy

    Index

    Properties

    kind: "cluster"

    Methods

    • Experimental

      GeoJSON source options enabling MapLibre-native clustering (cluster, clusterRadius, clusterMaxZoom, clusterProperties). Merge these into the GeoJSON source spec that feeds the layers.

      Returns Record<string, unknown>