Actives (or deactivates) drawing on the map.
Readonly
graphicIf drawing has finished, the drawn graphic will be provided here.
The current drawing mode
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
}
}
}
Optional
vertexThe current vertex mode.
The view to draw on.
Fields usable on Drawing.