SDK JS
    Preparing search index...

    Interface DrawControllerOptions

    Configuration for DrawController.

    interface DrawControllerOptions {
        map: Map$1;
        onChange: (state: DrawState) => void;
        pickFn: (x: number, y: number) => ScenePickResult;
    }
    Index

    Properties

    Properties

    map: Map$1

    The MapLibre map to bind.

    onChange: (state: DrawState) => void

    Invoked after every state change with the new DrawState.

    pickFn: (x: number, y: number) => ScenePickResult

    Screen → scene position resolver (CSS px, top-left origin). Measurement injects pickScenePosition over its 3D layers; the profile injects a terrain-only picker.