I’m trying to code the Sketch widget (4.x) to only display the rectangle draw tool on my map. I want the ability to limit the tool to just draw one graphic at a time.
Displaying the rectangle draw tool was easy to do, however, trying to remove the ability to draw multiple graphics at a time is my current issue with this widget.
I also noticed when I click on the drawn graphic after drawing the rectangle, the scaling boxes change to vertices, but I don’t want that as an option for my rectangle graphics, and I am unable to find the event that removes the vertices.
Does anyone know how to limit the tool to just draw one graphic at a time and remove the vertices from the graphic?