Hi everone, sorry for asking about polylines, but I don't get any error messages and the polyline won't appear. Maybe you have an idea, why.
Here is my test webpage: http://eger81.eg.funpic.de/index_2707_lines.html I have a database with one table for markers and one table for polylines. To get an xml file I use php, Everythings fine here. The xml is shown under http://eger81.eg.funpic.de/index_2707_lines.php //*** read polylines out of xml GDownloadUrl("index_2707_lines.php", function(geometry) { var xmlLines = GXml.parse(geometry); var lines = xmlLines.documentElement.getElementsByTagName("line"); // Zeilen lesen for (var l = 0; l < lines.length; l++) { // read points var points = lines[l].getElementsByTagName("point"); var pts = []; for (var i = 0; i < points.length; i++) { var polyline= new GPolyline([ pts[i] = new GLatLng(parseFloat(points[i].getAttribute("gb")), parseFloat(points[i].getAttribute("gl"))) ],"#0055ff",5); } map.addOverlay(polyline); } }); Could there be a problem because of the use of GDownloadUrl() two times in the load() function? Is there a mistake in the code Firefox couldn't see? Thank's a lot! Claudia --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
