map.apps Bundle APIs 4.20.0
    Preparing search index...

    Interface DrawingMembers

    Fields usable on Drawing.

    interface DrawingMembers {
        active: boolean;
        graphic: undefined | Graphic;
        mode: DrawingMode;
        symbols: SymbolLookup;
        vertexMode?: VertexMode;
        view: View;
    }
    Index

    Properties

    active: boolean

    Actives (or deactivates) drawing on the map.

    graphic: undefined | Graphic

    If drawing has finished, the drawn graphic will be provided here.

    The current drawing mode

    symbols: SymbolLookup

    Lookup object for symbols used while drawing.

    It has the following structure:

    {
    "rectangle": {
    type: "simple-fill",
    color: [0, 0, 0, 0.25],
    style: "solid",
    outline: {
    color: "#FF0000",
    width: 2
    }
    },
    "polygon": {
    type: "simple-fill",
    color: [0, 0, 0, 0.25],
    style: "solid",
    outline: {
    color: "#FF0000",
    width: 2
    }
    },
    "polyline": {
    type: "simple-line",
    style: "solid",
    color: "#FF0000",
    width: 2
    },
    "point": {
    type: "simple-marker",
    style: "circle",
    color: [0, 0, 0, 0.25],
    size: "2px",
    outline: {
    color: "#FF0000",
    width: 2
    }
    }
    }
    vertexMode?: VertexMode

    The current vertex mode.

    view: View

    The view to draw on.