We are having issues when using the Editor widget on some of our Feature Layers. It happens when we try and add a new polygon. It then crashes the widget and throws an error, so we're unable to add any features at all.
The error we're getting is the following
it was working ok in 4.18
edit: it seems it's affecting only layers that have Z values enabled. if that helps
Hello @MatthieuThery1 ,
There is an existing bug submitted recently for this issue BUG-000141323. This is caused when creating polygons with z-values. Point and polylines still work. This bug was introduced when snapping was added to the SketchViewModel at 4.19. Even though you may not be using snapping, you can still run into this issue.
I apologize for this, we are actively working on this bug, and hope to get this fixed for version 4.21.
Hi, we were also working through this problem and I just confirmed that republishing the data with has Z: false has worked around the above issue. Many thanks to @ShawnGoulet1 for keying me into this.
Not sure if this is linked to the above but we found an issue that happens when we try to use the cancel() method on the SketchViewModel, while updating/reshaping a polyline.
We are getting the following error:
which seems to be related to snapping. It was working fine in 4.19.
Can you provide a repro sample codepen? Can you provide the current version you are using, and the steps to reproduce this?
I tested this in 4.20 and our latest build today and I am not able to repro with SketchViewModel. There might be an additional step I'm missing that can lead to this issue.
Hi, I created a codepen here: https://codepen.io/mtrsklnkvMM/pen/xxrrLZP
I set the environment to 4.19, so as you can see the original behaviour.
1-Create a single polyline
2-click to select it and then click a second time to enter "reshape mode"
3-Try to move the middle vertex
4-It splits the line in half
Now If I switch to 4.20, it crashes the map in codepen (throws the error mentionned above in our app too).