SDK JS
    Preparing search index...

    Interface ProfileControllerOptions

    Configuration for createProfileController.

    interface ProfileControllerOptions {
        map: Map$1;
        onDraw?: (state: DrawState) => void;
        onRun?: (run: ProfileRun | null) => void;
        samples?: number;
        surfaceLayers?: readonly SurfaceSampleable[];
    }
    Index

    Properties

    map: Map$1

    The MapLibre map.

    onDraw?: (state: DrawState) => void

    Invoked with the draw state on every draw change (the widget renders the overlay from this).

    onRun?: (run: ProfileRun | null) => void

    Invoked with the (re)sampled ProfileRun whenever elevations change.

    samples?: number

    Station count along the line (default 256, clamped [16, 2048]).

    surfaceLayers?: readonly SurfaceSampleable[]

    3D layers whose surfaces (buildings, integrated mesh) are sampled along the line and drawn as the second, feature-colored chart line (any layer exposing sampleSurfaceHeights, e.g. the mesh layers). Omitted → terrain-only profile.