On Apr 10, 3:00 pm, Grete <[email protected]> wrote:
> > Why don't you take 4 clicks on the 4 corners?
> > If you place draggable marker at each click, then your users can move
> > them if they need to...
>
> The rectangle should have 4 right angles. Therefore, the user should
> not move the corners arbitrary.

First develop a map where you can draw any polygon shape.

Maybe start with this map:

http://gmaps-utility-library-dev.googlecode.com/svn/trunk/geometrycontrols/examples/test.html

Once you can draw any polygon, then

1. apply mathematical contraints to the 3rd point (project it at right
angles to the baseline), and
2. calculate the 4th point and finish the rectangle automatically.


-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.

Reply via email to