On Oct 5, 11:15 am, Mike Borkus <[email protected]> wrote: > Hi, after > readinghttp://groups.google.com/group/google-maps-api/browse_thread/thread/6... > > 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. > > here you can see the script:http://pastebin.com/f59ef0976
Not sure what is not clear about the posting guidelines. Code listings are not helpful. > hope someone can help me. You have a loop creating markers, so you get each marker's position: var point = new GLatLng(...,...); Push the point on to an array, say points[], and then use that array to create the polyline. var points = []; // define the array before you start using it points[] = point; // puts point on to the end of the array var polyline = new GPolyline(points,...); map.addOverlay(polyline); Try that. If you need help with implementing it, please give a link **to the page** with your attempt in it, not to a code listing. Andrew --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
