This is the documentation of version 0.57.0. Go to the latest version, 1.0.0-rc.5.
TomTom Maps for JavaScript
    Preparing search index...

    Type Alias LayerQuery

    How StylingModule.layers picks style layers: by the SDK's base-map group taxonomy, layer type, vector-tile source layer and case-insensitive id fragments. Every constraint given must hold.

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

    A base-map layer group, the same vocabulary as BaseMapModule.

    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, …).