Fields usable on Drawing.

interface DrawingMembers {
    active: boolean;
    graphic: any;
    mode: DrawingMode;
    symbols: SymbolLookup;
    vertexMode?: VertexMode;
    view: any;
}

Properties

active: boolean

Actives (or deactivates) drawing on the map.

graphic: any

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: any

The view to draw on.