In the Sketch widget you can use the visibleElements property to hide certain tools. In the type definition section of the documentation it shows "lasso-selection" and "rectangle-selection" under 'selectionTools' but it does not list the first selection tool (left-most on the toolbar, the simple selection one). Is there any way to hide this tool as well?
Basically I only want some of the createTools to appear. Users of my application do not need to update graphics created with the sketch tool, in fact my application automatically removes the graphics after they are created. I am just using the sketch to get geometries for queries on a separate FeatureLayer.
const sketchWidget = new Sketch({
layer: sketchLayer,
view: view,
creationMode: "single",
visibleElements: {
createTools: {
point: false,
polyline: false,
circle: false
},
selectionTools: {
"lasso-selection": false,
"rectangle-selection": false,
},
undoRedoMenu: false
}
});