1

Possible Duplicate:
Drawing a line/path on Google Maps

How would I use Google Maps API to plot a route? E.g to have a bunch of way points loaded onto the map (I currently have this) and draw a line from each of them showing the user a route they could take to see all of them? How would I then load this up when the user see's the map?

Community
  • 1
  • 1
user1134427
  • 111
  • 1
  • 8
  • [this](http://android-example-code.blogspot.in/p/map-api-in-android.html) may help you – MAC Sep 29 '12 at 13:06

1 Answers1

2

Check this out, this question has been asked many times. Basically, in onDraw() of your Overlay class you need to loop through your waypoints, building a Path. Then at the end you draw the path on your map. If that's confusing, just read the link :D

Community
  • 1
  • 1
crocboy
  • 2,887
  • 2
  • 22
  • 25