TomTom Maps for JavaScript
    Preparing search index...

    Type Alias PartsBeforeLayerConfig<PART>

    PartsBeforeLayerConfig:
        | BeforeLayerConfig
        | { all?: BeforeLayerConfig } & { [P in PART]?: BeforeLayerConfig }

    Where a module's layers go in the map's layer stack, as one BeforeLayerConfig for the whole module or one per part of it.

    Type Parameters

    • PART extends string

      The names of the module's parts that move independently.

    In the record form, a part takes its own entry, otherwise all. A part that neither names stays where the module puts it by default. A part's own layers keep their order wherever it goes.

    const everything: GeometryBeforeLayerConfig = 'top';
    const split: GeometryBeforeLayerConfig = { all: 'lowestLabel', fill: 'lowestRoadLine' };