Edit Geometry of Editor Widget not updating the geometry

614
4
03-23-2011 05:45 AM
roufbaba
New Contributor III
Hi,

I am not able to edit an existing geometry using Edit Geometry tool of editor widget. This can be tested in the sample gallery also.

Need immediate positive response from ESRI support.

Thanks
Rouf
0 Kudos
4 Replies
JenniferNery
Esri Regular Contributor
Can you link us to the sample that has this issue? Please let us know the steps to reproduce the problem.

My guess is that you see the geometry revert back to its original shape because the EditVertices command gets cancelled when you activate another command.

This might be related thread:
http://forums.arcgis.com/threads/26034-Unable-to-save-edits-to-graphics-on-GraphicsLayer-using-Edito...
0 Kudos
roufbaba
New Contributor III
Thanks Jennifer,

Yes, I got it now. We either need to click on the same feature again or any other Map area to save the action. But as far as Api's 2.0 is concerned this was not the case. Action was saved even if one selects any other tool.


Regards
Rouf
0 Kudos
SteeveCouture
New Contributor
Hi,

Is there a way to EditVertices command gets completed without click to the edited geometry?

Is there a workaround to accept the edition when the user click anywhere in the map (instead of click on the edited geometry) ?

Thanks
Steeve
0 Kudos
JenniferNery
Esri Regular Contributor
Instead of using Editor.EditVertices command, you can use EditGeometry. http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.EditGeomet.... This allows you to StartEdit/CancelEdit/StopEdit in code-behind. Note, however, that you may need to Simplify the resulting geometry. http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Simplify
0 Kudos