Select to view content in your preferred language

Sketch reshape helper points not disappearing on dragging.

204
0
05-10-2022 04:14 AM
YogeshSwami
Emerging Contributor

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')
                }
              });

YogeshSwami_0-1652181107396.png

Please someone help.

Thanks in advance.

 

0 Kudos
0 Replies