Select to view content in your preferred language

saving sketch layer features in database . is it possible ?

584
1
03-10-2022 12:59 AM
SHASHIKANTKASERA
New Contributor

can we save features ( point, line , polygon ) in database created using sketch widgets in arcgis api for javascript 4.22

0 Kudos
1 Reply
JoseBanuelos
Esri Contributor

Hello @SHASHIKANTKASERA 

With a completely custom workflow you can if you are working with hosted editable feature services. With the out-of-the-box widget, you cannot because Sketch saves its graphics on a GraphicsLayer that exists entirely on the client. If you refresh the app then the graphics are cleared.

Editor uses the Sketch drawing API using SketchViewModel, and Editor allows you to edit feature from an editable feature service easily. If you don't want to use Editor, then you would have to create your own custom workflow and application.

Ex: https://developers.arcgis.com/javascript/latest/sample-code/widgets-editor-basic/

Thanks,

Jose

0 Kudos