AnsweredAssumed Answered

How to draw a rectangle with SketchEditor after cancelling

Question asked by larson_devnetinc Champion on Feb 26, 2019
Latest reply on Feb 26, 2019 by larson_devnetinc



I am using the SketchEditor.StartAsync(CreationMode.Rectangle, false) to draw a rectangle on a map by dragging the mouse. I added the abaility to cancel the sketch by pressing Escape and this cancels the drawing as I expected. However, when I try to draw another rectangle, nothing shows up and the geometry returned by StartAsync is null. After this, I can draw another rectangle, but the first time I try to draw after cancelling, this happens. Is there any way around this?