I am trying to implement PointDrawAction by adding to the code example at:
https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-PointDrawAction.html
My goal is to have the draw tool enabled on map load so that a user does not need to click on a widget button but just clicks on the map to select a point and a graphic marker will be added. When they click on a different point the 1st graphic should be removed and a new graphic created.
I tried simple adding a minimal event listener to the example code in the docs but it did not work:
view.on("Click", enableCreatePoint);
Any advice or examples you can point me to would be very helpful.