1. Have you tried to load the xml file directly in your browser? http://zvme2.jopp-net.de/points.php
CAUTION: My browser crashes after about a minute when it tries to load this file. 2. I downloaded your file points.php using wget. I can see the following lines in your script var polygones = xmlDoc.documentElement.getElementsByTagName("polygon"); for (var a = 0; a < polygones.length; a++) { // get any state attributes var label = polygones[a].getAttribute("name"); var colour = polygones[a].getAttribute("colour"); ..... But in your xml file I cannot see that the children of the polygon tag have a color attribute. On Sep 6, 10:35 am, Alphawolf <alphawol...@gmail.com> wrote: > Hey, > > I'm having a map loading lat/lng points from an XML file creating Polygones > on the map:http://bit.ly/nO1GjN > > 3 or 4 weeks ago that seemed to stop working properly for whatever reason. > Here's the part that gets the lat lng coordinates from the XML file and > creates the polygones: > > for (var i = 0; i < points.length; i++) { > pts[i] = new > google.maps.LatLng(points[i].getAttribute("lat"), > points[i].getAttribute("lng")); > } > > poly = new google.maps.Polygon({ > paths: pts, > strokeColor: colour, > strokeOpacity: 0.8, > strokeWeight: 2, > fillColor: colour, > fillOpacity: 0.4, > clickable: false > }); > > poly.setMap(ZVME.map); > > The error I get in Firebug is > > *"c is > undefinedhttp://maps.gstatic.com/intl/en_ALL/mapfiles/api-3/4/19/main.js > Line 82 > (82 out of range 42)"* > > Ideas, anyone? -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.