TomTom Maps for JavaScript
    Preparing search index...

    Type Alias LayerQuery

    How StylingFoundationsModule.layers picks style layers, by a named group, layer type, vector-tile source layer and case-insensitive id fragments. Every given constraint must hold.

    type LayerQuery = {
        group?: StyleLayerGroupName;
        idExcludes?: string[];
        idIncludes?: string[];
        layerTypes?: LayerSpecification["type"][];
        metadataGroups?: string[];
        sourceLayers?: string[];
    }
    Index

    A named group of style layers, a base-map group in the vocabulary of BaseMapModule or the layers of another style-owned module (pois, trafficFlow, trafficIncidents, hillshade).

    idExcludes?: string[]

    The layer id must contain none of these (case-insensitive).

    idIncludes?: string[]

    The layer id must contain one of these (case-insensitive).

    layerTypes?: LayerSpecification["type"][]

    Layer types (line, fill, symbol, …).

    metadataGroups?: string[]

    The style's own metadata.group values, for groups the SDK does not name.

    sourceLayers?: string[]

    Vector-tile source layers (roads, places, poi, …).