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

    Interface VectorLayer<M, D, P>

    Guide to building Vector layer data

    interface VectorLayer<
        M = Record<string, unknown>,
        D extends MValue = Properties,
        P extends Properties = Properties,
    > {
        description?: string;
        drawTypes: DrawType[];
        extent: Extents;
        layerName: string;
        mShape?: Shape;
        onFeature?: OnFeature<M, D, P>;
        shape: Shape;
        sourceName: string;
        vectorGuide: TileStoreOptions;
    }

    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

    drawTypes: DrawType[]

    Draw Types (points, lines, polygons, 3D points, 3D lines, 3D polygons). This is a filter mechanic. The source data may have multiple feature/draw types, but the layer you're building only wants to use the points. So you would add:

    import { DrawType } from 'gis-tools-ts';
    const drawTypes = [DrawType.Points];
    extent: Extents

    Extent at which the layer is storing its data

    layerName: string

    Name of the layer

    mShape?: Shape

    M-Value Shape guide for the vector 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

    shape: Shape

    Shape guide for the vector layer

    sourceName: string

    Name of the source

    vectorGuide: TileStoreOptions

    Guide on how to splice the data into vector tiles