Hi, after reading http://groups.google.com/group/google-maps-api/browse_thread/thread/658f99d8edef0eea/75b1518bb2729904
i still don't manage to draw a polyline between a bunch of markers. ik have the following working script that displays a bunch of markers and I want to draw polylines between them. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http:// www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <title>route</title> <script src="http://maps.google.com/maps? file=api&v=2&key=ABQIAAAA18h8C7JHYzt71Aa3EELZuhT2yXp_ZAY8_ufC3CFXhHIE1NvwkxREl2AxrMnGugQ6foc1AegJhN8RVQ" type="text/javascript"></script> <script src="http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js" type="text/javascript"></script> <script type="text/javascript"> function load() { if (GBrowserIsCompatible()) { var map = new GMap2(document.getElementById("map")); map.enableScrollWheelZoom(); map.setMapType(G_HYBRID_MAP); map.addControl(new GLargeMapControl3D()); map.setCenter(new GLatLng(52.1458, 4.40278), 11); GDownloadUrl("get_markers.php?auto=<?PHP echo empty($_GET ['auto'])?die():$_GET['auto']?>&datum=<?PHP echo empty($_GET['datum'])? die(''):$_GET['datum']?>", function (data) { var xml = GXml.parse(data); var markers = xml.documentElement.getElementsByTagName ("marker"); for (var i = 0; i < markers.length; i++) { var sid = markers[i].getAttribute("id"); var time = markers[i].getAttribute("time"); var point = new GLatLng(parseFloat(markers [i].getAttribute("lat")), parseFloat(markers[i].getAttribute("lng"))); var marker = createMarker(sid, point, time); map.addOverlay(marker); } }); } } function createMarker(sid, point, time) { var marker = new GMarker(point); var html = "<b>" + time + "</b>"; GEvent.addListener(marker, 'click', function () { marker.openInfoWindowHtml(html); }); return marker; } </script> </head> <body onload="load()" onunload="GUnload()" style="font-family:Verdana, Geneva, sans-serif;font-size:10px;margin:0;padding:0;"> <div id="map" style="width:600px;height:500px"></div> </body> </html> here you can see the script: http://pastebin.com/f59ef0976 hope someone can help me. cheers Mike --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
