Terradraw Control Plugin control constructor options

interface TerradrawControlOptions {
    modeOptions?: ModeOptions;
    modes?: (
        | "render"
        | "point"
        | "linestring"
        | "polygon"
        | "rectangle"
        | "circle"
        | "freehand"
        | "angled-rectangle"
        | "sensor"
        | "sector"
        | "select"
        | "delete-selection"
        | "delete"
        | "download"
    )[];
    open?: boolean;
}

Properties

modeOptions?: ModeOptions

Overwrite Terra Draw mode options if you specified.

modes?: (
    | "render"
    | "point"
    | "linestring"
    | "polygon"
    | "rectangle"
    | "circle"
    | "freehand"
    | "angled-rectangle"
    | "sensor"
    | "sector"
    | "select"
    | "delete-selection"
    | "delete"
    | "download"
)[]

Terradraw modes added to the control. The mode will be added in the same order of the array. Default is all modes in the below order: ['point', 'linestring', 'polygon', 'rectangle', 'angled-rectangle', 'circle', 'freehand', 'select']

You can change the order of modes, or can get rid of some modes which you don't need for your app.

open?: boolean

Open editor as default if true. Default is false