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 CustomGeoJSONBeforeLayerConfig

    CustomGeoJSONBeforeLayerConfig: BeforeLayerConfig | { layerID: string }

    Where a custom layer goes in the map's layer stack. It is 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.

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

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