TomTom Maps for JavaScript
    Preparing search index...

    Type Alias ToBeAddedLayerSpecTemplate<L>

    ToBeAddedLayerSpecTemplate: LayerSpecTemplate<L> & HasBeforeID

    Layer specification with optional positioning for custom layer ordering.

    Type Parameters

    • L extends LayerSpecification = LayerSpecification

      The MapLibre layer specification type (defaults to any LayerSpecification)

    This type allows you to define layers with precise control over their rendering order in the map's layer stack. Each layer can optionally specify another layer to be positioned before/under from.

    Layer Ordering:

    • Layers are rendered in order from bottom to top
    • Use beforeID to insert a layer before (below) an existing layer. The provided ID will be above (so the current layer will be under 'beforeID').
    • Omit beforeID to place the layer on top of all existing layers