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

    Type Alias HasAdditionalLayersConfig

    Configuration for adding custom layers to a map module based on its controlled source data.

    type HasAdditionalLayersConfig = {
        additional?: Record<
            string,
            ToBeAddedLayerSpecTemplate<
                | SymbolLayerSpecification
                | LineLayerSpecification
                | CircleLayerSpecification,
            >,
        >;
    }
    Index
    additional?: Record<
        string,
        ToBeAddedLayerSpecTemplate<
            | SymbolLayerSpecification
            | LineLayerSpecification
            | CircleLayerSpecification,
        >,
    >

    Custom layers to add alongside the predefined ones.

    Use them to add extra visuals, such as lines, symbols or any layer MapLibre supports, to a specific module part. They complement the standard route visualization layers.

    To place an additional layer under a predefined one, or under another of your additional layers, set its 'beforeID'.