This is the documentation of version 0.62.0. Go to the latest version, 1.0.0-rc.5.
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: 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, else all. A part neither names stays where the module puts it by default, and a part's own layers keep their order wherever it goes.

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