gis-tools-ts - v0.6.0
    Preparing search index...

    Interface ClusterLayer<M, D, P>

    Guide to building Cluster layer data

    interface ClusterLayer<
        M = Record<string, unknown>,
        D extends MValue = Properties,
        P extends Properties = Properties,
    > {
        clusterGuide: ClusterOptions;
        description?: string;
        extent: Extents;
        layerName: string;
        onFeature?: OnFeature<M, D, P>;
        sourceName: string;
    }

    Type Parameters

    • M = Record<string, unknown>
    • D extends MValue = Properties
    • P extends Properties = Properties

    Hierarchy (View Summary)

    Index

    Properties

    clusterGuide: ClusterOptions

    If options are provided, the assumption is the point data is clustered

    description?: string

    Explain what the layer is

    extent: Extents

    Extent at which the layer is storing its data

    layerName: string

    Name of the layer

    onFeature?: OnFeature<M, D, P>

    If provided, you can mutate the feature. If you return nothing it's the same as filtering the feature

    sourceName: string

    Name of the source