On Aug 13, 9:57 pm, "David .Wu" <[email protected]> wrote:
> Hi, this is my google map code,

Please read the posting guidelines.
http://groups.google.com/group/Google-Maps-API/web/suggested-posting-guidelines

http://groups.google.com/group/Google-Maps-API/web/why-including-a-link-is-critical

> when you click on the map, it will put
> a marker, and if you put more than one marker, it will calculate the
> path among the markers, but I got one problem, the path will add
> repeatedly, I tried to use clearOverlays, but it also clear the
> marker, can I clear the path but keep the marker?

get a reference to the polyline and call remove overlay on it.

  -- Larry

--~--~---------~--~----~------------~-------~--~----~
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