On Mar 24, 11:48 am, sazib <[email protected]> wrote:
> I want to get the latitude and longitude of  poly lines or polygon
> after drawing it on google map. Can anyone please suggest me how to do
> that?

If you have retained a reference to your line or polygon by doing
something similar to

var myPoly = new GPolygon(...);
map.addOverlay(myPoly);

then you can use .getVertex() to isolate a vertex, and find its
coordinates:

var latlng = myPoly.getVertex(0)

You can loop through the vertices: myPoly.getVertexCount() returns the
number of vertices.

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