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; or 
http://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
-~----------~----~----~----~------~----~------~--~---

Reply via email to