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

    Interface StringifiedVectorLayer

    Guide to building Vector layer data where the onFeature is stringified to ship to workers

    interface StringifiedVectorLayer {
        description?: string;
        drawTypes: DrawType[];
        extent: Extents;
        layerName: string;
        mShape?: Shape;
        onFeature?: string;
        shape: Shape;
        sourceName: string;
        vectorGuide: TileStoreOptions;
    }

    Hierarchy

    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?: string

    Stringified version of the onFeature used by the source so it can be shipped to a worker.

    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