The xml is a simple storage, each lot has an i number of vertexes
stored <lati></lati><loni></loni> where i is the index for that lots
range of vertexes. I want to take this data and draw a polygon. This
is what I figured it would be..

  var polyPoints = [];
  var x=xmlDoc.getElementsByTagName("lot");
  var polyPoint;

    for( var j = 0; j < 3; j++ ) { // ignore j < 3, just trying to get
it work for any case
      polyPoint = new GLatLng(
x[0].getElementsByTagName("lat"+(j+1))[0].childNode[0].nodeValue, x
[0].getElementsByTagName("lon"+(j+1))[0].childNodes[0].nodeValue );

      polyPoints.push(polyPoint);
    }
  var polygon[n] = new GPolygon( polyPoints,"#f33f00",5,1,"#ff0000",
0.2);
  map.addOverlay(polygon[n]);

I've read through about 30 different threads on similar topics, and
the documentation on GPolygon.. it just didn't specify the array of
vertexes format, required to start a polygon.

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