Hi everyone, novice programmer here tasked with making a project, I'm a little out of my depth. I'm using this plugin to allow a user to select a basic rectangular area on a map, I found that the Sketch widget is pretty much exactly what I need.
There is a sample of it here: Sketch widget | ArcGIS API for JavaScript 4.15
As I only want a basic rectangle I wanted to disable the other options of drawing, I found I could do this with this "availableCreateTools: ["rectangle"]" code but now I still have the issue of the reshape tool being able to modify the rectangle into complex shapes, and the transform tool being able to rotate the rectangle (which I do not want either).
How can I disable both of these behaviors? (Most importantly the reshape one first).
Please see my code pen here: https://codepen.io/issun/pen/BaopmQV?editors=1010
Thanks in advance for all your answers!
UPDATE 1: Figured out how to disable rotation, by adding the line "sketch.defaultUpdateOptions.enableRotation = false;" before adding sketch to the view. Now I just need help with disabling the reshape tool 