Is there a way to edit Polygon/Polyline (drawn using the Draw API ) vertices in Javacript 4.0+ versions ?Icouldn't find any examples for this, all I could find was examples and documention for older 3.0 versions. Please help if you know anything about this.
Thanks.
Solved! Go to Solution.
Hi there,
You can use sketch or sketchViewModel to do what you are asking provided that I understood your question correctly. This sample shows how to modify a polygon after it has been created. https://developers.arcgis.com/javascript/latest/sample-code/sketch-update-validation/
If you are creating your geometries using Draw API then please be sure to add those graphics to a graphics layer associated with the sketch view model so that they can be updated via sketch.
Hope this helps,
-Undral
Hi there,
You can use sketch or sketchViewModel to do what you are asking provided that I understood your question correctly. This sample shows how to modify a polygon after it has been created. https://developers.arcgis.com/javascript/latest/sample-code/sketch-update-validation/
If you are creating your geometries using Draw API then please be sure to add those graphics to a graphics layer associated with the sketch view model so that they can be updated via sketch.
Hope this helps,
-Undral
Hey thanks for the reply, I'll try this.