Select to view content in your preferred language

Programmatically add graphics when sketch widget is in Create mode

176
0
05-14-2025 07:13 AM
SaiPeketi
Occasional Contributor

Hi,

 

Thanks for the time to check this question. 

With the Polyline tool enabled, I'm trying to add a vertex to the graphics when the sketch widget is in create mode. I can get the vertex from the added graphic layer when a state is in active and polyline, but I'm not able to programmatically create a new vertex in create mode. We can do it with an update reshape, but we want to create a new vertex when creating the sketch widget.

 

Attaching the codepen link, where I'm able to get the get create graphics but I tried to programmatically add a vertex, but it's not getting added to that vertex.

 

Thanks for the help in advance!

https://codepen.io/Andy0206/pen/xbbaBmd?editors=1000

0 Kudos
0 Replies