Hello Community,
I am trying to draw polygon and edit it using sketch feature. When I am trying to drag the polygon, the previous helper points are not disappearing.
Here is the code which I am using:
const polygonSketch = new Sketch({
layer: graphicsLayer,
view: view,
creationMode: "update",
defaultUpdateOptions: {
tool:'reshape',
toggleToolOnClick:false,
}
});
polygonSketch.create("polygon", { mode: "click" });
polygonSketch.on("create", (event:any) => {
if (event.state === "complete") {
console.log('sketch completed')
}
});
Please someone help.
Thanks in advance.