On Sep 29, 2:51 am, indyce <[EMAIL PROTECTED]> wrote: > 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 underhttp://eger81.eg.funpic.de/index_2707_lines.php
Invalid xml (at least in IE6): The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. -------------------------------------------------------------------------------- An invalid character was found in text content. Error processing resource 'http://eger81.eg.funpic.de/phpsql_genxml2_2707.p... <marker kurzname="Diepold, Kathi Zimmer" vorname_fi="Gästehaus" name_fi="Zum Wias" str="Zugspitzstraße"... > > //*** 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 -~----------~----~----~----~------~----~------~--~---
