Select to view content in your preferred language

JavaScript Draw Toolbar - Rectangle: Behaviour like desktop

968
0
11-11-2016 08:21 AM
Status: Open
AnthonyGiles
Honored Contributor

I would like to see the rectangle option in the JavaScript draw toolbar mimic that of drawing a polygon in desktop, in that it is a 3 click operation, allowing you to draw the rectangle at any angle to the map i.e. You start by drawing a base line then extend the height out from that line.

The current JavaScript method is exactly the same as drawing an extent, click and drag the area which can only be square to the map, the only difference is that it returns a polygon object not an extent object.