Thanks for your kindly resposne, I try to use the GDerections before,
but I got several issues
directionsPanel = document.getElementById("route");
directions = new GDirections(map, directionsPanel);
directions.load('from: 台北市文山區一壽街62號 to: 台北市文山區木新路二段' +' to: 台北市文山區指南路二
段 ');
1. Need to type exact address, if you use navigator function on
maps.google.com, it have many function to help to correct the address,
I don't know how to do that.
2. If the direction is not as I want, I can't change the path only by
GDresctions function
so, drawing polyline can't make it fit to the road right?
On 7月16日, 上午11時13分, Andrew Leach <[email protected]>
wrote:
> On Jul 16, 8:23 am, "David .Wu" <[email protected]> wrote:
>
> > Hi everyone, I know how to draw the polyline right now, but I really
> > want to make the function better, please help me.
>
> > 1. Can I drawing the line fit to the real road?
>
> Driving directions are available in Taiwan. Have a look at
> GDirections, which will draw a line for you;
> orhttp://econym.org.uk/gmap/steps.htm
> gives advice on how to interpret the routing data which GDirections
> returns.
>
> > 2. How to add maker between two makers I made?
>
> That sounds as though you should be editing a single line rather than
> drawing different lines between your markers.
>
> When you add a marker, extend the line to it. Combining this with
> GDirections (to provide an editable road-following line) is possible,
> but is not trivial. I think there have been examples posted here: try
> searching for a few key words.
>
> 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
-~----------~----~----~----~------~----~------~--~---