I found this great script with it you can “Line Length and Polygon Area”, but i need it to let users draw only rectangles (90º angle).
I already change it to let users add just 4 points, but is not enough.
The original script lets you change the markers position. I would need that also, but if a user change the position of markers to be larger or smaller, it should keep the rectangle shape.
I’m working with jQuery / javascript.
Any one can help me?
Thank you.
Only let the users add 2 points, use those as opposite corners of the rectangle (or use an editable google.maps.Rectange, set its editable property to true, {editable:true})