This is the documentation of version 0.63.0. Go to the latest version, 1.0.0-rc.5.
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 constraint given 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, the same vocabulary as 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, …).