On Dec 2, 10:55 am, venkat rathnam <[email protected]> wrote: > Hi, > > I got the drive directions with starting point A and ending point with > B. But I do not need A and B. I want only polyline along with > directions for that I worte the code like this > var directionsPanel = document.getElementById("route"); > var directions = new GDirections(map, directionsPanel); > directions.load("from:17.4429638888889,78.4990694444444 to: > 17.4476194444444,78.4611388888889",{getPolyline: true}); > GEvent.addListener(directions,"load",function(){ > var poly = directions.getPolyline(); > map.addOverlay(poly); > > }); > > I am getting A and B markers againg with this code. To get the only > poly line what should I do? pls let me know
You have already asked this, and Larry has already given you the answer. http://groups.google.com/group/google-maps-api/msg/01902617ab4ecb75 However, you could also look at the documentation: http://code.google.com/apis/maps/documentation/reference.html#GDirections.GDirections -- in particular, what happens with the arguments to GDirections. 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.
