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

    Type Alias CustomGeoJSONBeforeLayerConfig

    CustomGeoJSONBeforeLayerConfig: BeforeLayerConfig | { layerID: string }

    Where a custom layer goes in the map's layer stack: a BeforeLayerConfig, or { layerID } to go beneath a layer outside the map style, such as another layer of this module or one another module added.

    A layerID no layer on the map has puts the layer on top, as MapLibre's addLayer does.

    const underLabels: CustomGeoJSONBeforeLayerConfig = 'lowestLabel';
    const underAnotherModule: CustomGeoJSONBeforeLayerConfig = { layerID: 'custom-geojson-0-parks-layer-0' };