The way I'm trying to implement this feature is by cataloguing the
indexes of the start and end of the routes and then using
map.getOverlays().remove(index) in a loop to go through and remove all
of the overlays created by DrawPoints. I'm going to be working on that
today so I'll let you know how that goes. It's good that someone else
is trying to do this too!

Adam

On Apr 24, 12:10 am, Kaustubh Padegaonkar <[email protected]>
wrote:
> @Adam i have used the code too, and agree that long routes make the app
> unresponsive. its a nifty piece of code. just that i also cannot get the
> routes to "clean up". It needs to invalidate() or maybe create a new
> MapView.
>
> Kaustubh Padegaonkar,
> [email protected]
>
> On Sat, Apr 24, 2010 at 6:06 AM, Adam Carruthers <
>
>
>
>
>
> [email protected]> wrote:
> > Sreehari:
>
> > I'm in the process of doing the same thing in my application.  A good
> > resource to look at is this post on anddev.org:
>
> >http://csie-tw.blogspot.com/2009/06/android-driving-direction-route-p...
> > (specifically the part about the class DrawPath where feeding
> > coordinates in will draw a route)
>
> > One thing mentioned in a later post by the owner of anddev (Nicholas
> > Gramlich) is that updating route information based on constantly
> > updated location data can be considered against the Maps API Terms of
> > Service.  You can look here for more:
>
> >http://www.anddev.org/important_android-googlemaps_api_tos_notice_upd...
>
> > Right now I'm trying to figure out how to erase parts of the route or
> > the entire route itself so if you make any progress be sure to let me
> > know!  The only problem I've experienced with the code from csie-tw is
> > that long routes make the application become unresponsive and force
> > close due to the nature of the system used.
>
> > Good luck! Hope that helps you!
>
> > On Apr 23, 12:19 pm, Nathan <[email protected]> wrote:
> > > On Apr 21, 11:05 pm, SREEHARI <[email protected]>
> > > wrote:
>
> > > > Hi All,
>
> > > >       I developed a map application with overlays. I am able to show
> > > > current location also. I want to display dynamic routes from current
> > > > location  to different points(overlays). I have stored several
> > > > points(geo coordiantes) using array. Should I use the graph data
> > > > structure concepts using some algorithms?
>
> > > Yes.
>
> > > And based on what you've said, I believe the algorithm choice is up to
> > > you.
>
> > > Nathan
>
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to [email protected]
> > > To unsubscribe from this group, send email to
> > > [email protected]<android-developers%2Bunsubs
> > >  [email protected]>
> > > For more options, visit this group athttp://
> > groups.google.com/group/android-developers?hl=en
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]<android-developers%2Bunsubs 
> > [email protected]>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" 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 
> athttp://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" 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/android-developers?hl=en

Reply via email to