I am having issues with clearing graphics in a custom WAB app.
I have been using this.map.graphics.clear() but I keep getting an Uncaught Error.
The functionality I am after is just allowing a user to draw a polygon, and clear the results. I hope to add undo/redo, and limiting it to a single feature later.
Attached is the widget, with the code changes in widget.js and widget.html. My experience with dojo/esi/etc. is limited, and I am sure it's something small I've just missed.
I would appreciate some help. Thx!