How to change vertex geometry when sketch is active ArcGIS JS API 4.18?

306
1
05-05-2021 06:08 AM
nidaaktan
New Contributor II

Hi,

I try to change vertex according to the coordinates i have created when sketch is active.

I have tried changing the sketchViewModel.createGraphic property to include the new coordinates but it did not work because sketchViewModel.createGraphic property is readonly.

Anyone has the same problem?

 

1 Reply
MartinPorteš
New Contributor III

Hi, did you manage to find any solution?

I'm basically trying to do the same. I found a bug report that said that graphics can not be modified (it does not move the point, but geometry is changed when applied). To move to point visually you have to create a clone and asign it to the graphicsLayer sketch is using (Or you have to create new graphics layer). But with this I end up with an error that sketch does not know this graphics.

Made new thread: 
https://community.esri.com/t5/arcgis-api-for-javascript-questions/editation-with-custom-coords/m-p/1...

Thank you for any answer!

MP

0 Kudos