1

In order to achieve what you are looking for, you need to start the action using the create method of the widget (ArcGIS API - Sketch Widget). This is a possible way of doing it, let handle = null; handle = sketch.watch("state", state => { console.log(state); if (state === "ready") { sketch.create("polygon"); ...


Only top voted, non community-wiki answers of a minimum length are eligible