Is there a way to configure the Editor widget to create/edit multipart polygons? I have a feature service loaded on my map in which I can create/edit my polygon features and attributes. Everything works correctly. I was just wondering if it is possible to extend my application to allow for multipart polygons. Let me know if anyone has any ideas. I understand this is possible using Smart Editor in web app builder, but I am creating more of a stand alone 1 page JavaScript application.
Solved! Go to Solution.
In case anyone read this and was interested... I figured it out.
Make a sketchViewModel for polygons with a separate graphicsLayer
On completion of drawing polygon append rings to an array. Keep drawing.
Once you're done drawing, use a button to call a function to create new polygon and add the rings from your array.
Create a graphic from the polygon and add to your features service via applyEdits()
Edit your new polygon with Editor as you would normally.
In case anyone read this and was interested... I figured it out.
Make a sketchViewModel for polygons with a separate graphicsLayer
On completion of drawing polygon append rings to an array. Keep drawing.
Once you're done drawing, use a button to call a function to create new polygon and add the rings from your array.
Create a graphic from the polygon and add to your features service via applyEdits()
Edit your new polygon with Editor as you would normally.