AnsweredAssumed Answered

Cancel Sketch Update in JS API 4

Question asked by JeromeCauchon on Aug 21, 2019
Latest reply on Aug 26, 2019 by JeromeCauchon

Is there a way to cancel a sketch during an update. I want to cancel update operation based on a condition.


const sketch = new Sketch({
   layer: layer,
   view: view


sketch.on('update', event => {

      // if something


Here's a CodePen of what i'm trying to achieve. Cancel Sketch Update