Prevent Self Intersecting Polygons being created

10-22-2018 02:06 AM
Occasional Contributor III

I am trying to tweak the prevent self-intersecting lines sample for polygons.

I want to avoid the user creating any self-intersecting polygons, making similar use of the client-side GeometryEngine package.

I have tried a variety of combinations, but struggling to massage this sample to work for polygons.  Can someone help put me out of my misery?

This is one of my attempts:

Still not catching all cases of self-intersecting polygons.

0 Kudos
0 Replies