On Apr 12, 8:22 pm, Lam <[email protected]> wrote:
> I would like to draw a rectangle on Google Map with 4 given points of
> latitude and longitude, how can I do so?

map.addOverlay(new GPolyline([new GLatLng(lat1,lng1), new
GLatLng(lat1,lng2), new GLatLng(lat2,lng2), new GLatLng(lat2,lng1),
new GLatLng(lat1,lng1)]));

  -- Larry

>
> Thank you!
> Lam

-- 
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