I added the edit widget in my application and it's not able to edit the vertices. By cons in the API Javacript if I double click on a feature that is possible.
https://developers.arcgis.com/javascript/3/samples/ed_simpletoolbar/
Solved! Go to Solution.
I modified the widget to ensure editing vertices. In "bindEventsAfterCreate" function I added this:
this.own(on(this.editor.editToolbar,
'activate',
lang.hitch(this, function (evt) {
if (evt.tool != 31) {
this.editor.editToolbar.activate(1 | 2 | 4 | 8 | 16, evt.graphic);
}
})));
Now I can edit vertices 🙂
Sebastien,
Make sure that you have enabled vertex editing (Reshape) in the widgets settings and that FeatureService allows geometry updates.
All is activate ( I can use the reshape tool), I also tested a webapp created in Online and is the same conclusion. Are you able to do it in your applications?
Hi Sebastien,
In the Smart Editor widget, after you select a feature, in the pop-up for attribute editing, ensure you've checked the "Edit Geometry" option in the dialog. This should enable editing vertices.
Hope this helps,
Ok Tanx, but I use the Edit Widget (https://doc.arcgis.com/fr/web-appbuilder/create-apps/widget-edit.htm)
I modified the widget to ensure editing vertices. In "bindEventsAfterCreate" function I added this:
this.own(on(this.editor.editToolbar,
'activate',
lang.hitch(this, function (evt) {
if (evt.tool != 31) {
this.editor.editToolbar.activate(1 | 2 | 4 | 8 | 16, evt.graphic);
}
})));
Now I can edit vertices 🙂