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

    Interface BaseLayer<M, D, P>

    No matter the type of layer you want to build, these are default properties to include

    interface BaseLayer<
        M = Record<string, unknown>,
        D extends MValue = Properties,
        P extends Properties = Properties,
    > {
        description?: string;
        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

    description?: string

    Explain what the layer is

    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