> var vertices = new Array();
> for (i=0;i<count;i++) {
> vertices[i] = polygon.getVertex(i);
.getVertex returns a GLatLng object, not text
http://code.google.com/apis/maps/documentation/reference.html#GPolyline
You can get numbers or a single text value out of a GLatLng using its
methods
http://code.google.com/apis/maps/documentation/reference.html#GLatLng
> cell.innerHTML = vertices;
that overwrites the value of innerHTML every time around the loop,
with a javascript array of objects (not text). Perhaps you ought to
clear the value before entering the loop, and concatenating the text
or HTML that you want as you step through.
cheers, Ross K
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---