I would like to disable the rotation that is allowed by default when using the trackmode.square on an editoverlay. I can do a rectangle that does not allow rotation, but is there a way to do this with the square mode?
Disable rotation on trackmode.square?
Hi David,
Thanks for your post, Attached code should be a basic idea of the workaround .
Would you please following the below steps to see how it works.
1. Navigate to our HowDoI sample => Shapes => Draw and Edit Shapes.
2. Open the DrawEditShapes.aspx.cs file and modify the file with the attached codes.
The key of the workaround is we set the IsRotatable property based on if the edit features are rectangle shape (square actually is also a rectangle)in EditOverlay.
Hope it helps.
If any other questions, please feel free to let us know.
Thanks,
Summer
Post11465.txt (1.83 KB)