Open Pioneer Trails Packages
    Preparing search index...

    Interface AddLayerOptionsAboveBelow

    interface AddLayerOptionsAboveBelow {
        at: "above" | "below";
        reference: string | Layer;
    }

    Hierarchy (View Summary)

    Index

    Properties

    Properties

    at: "above" | "below"

    Where to insert the new layer.

    Default: "top"

    • "top": Insert the new layer above all other normal operational layers (note: still below "topmost" layers).
    • "bottom": Insert the new layer below all other operational layers.
    • "above": Insert the new layer above the specified reference layer.
    • "below": Insert the new layer below the specified reference layer.
    • "topmost": Insert a new layer that is always displayed on top of all layers that were added at top (e.g. a highlight layer).
    reference: string | Layer

    The layer that serves as a reference point for insertion.

    Can be specified either as a layer object or an id.

    The reference must be a top level operational layer in the layer collection. Otherwise an error will be thrown.