Right now, I'm only using about 13 lines, 13 points and it's
noticeably slower. There must be faster way, how does google deal with
it when they display driving directions and they have all those path
lines and points and such?

On Feb 9, 9:57 pm, David Fire <[email protected]> wrote:
> try with less points???
>
> 2010/2/9 aspekt9 <[email protected]>
>
>
>
> > In my app I am drawing bus routes on top of a MapView. The routes have
> > anywhere between a dozen and a few hundred GPS coordinates that
> > describe the route that the bus takes.
>
> > The problem I'm having is that once I draw out all these lines using
> > drawLines panning/zooming the MapView is incredibly slow (even
> > clicking the 'Back' button takes a minute to happen).
>
> > I'm not sure how relevant it is, but I put in some debug code then
> > checked the logcat output and the MapView is repeatedly calling the
> > draw() method of the Overlay whether anything has changed or not. This
> > is happening several times a second and is causing a massive amount of
> > garbage collection to happen (2-3 MB every second).
>
> > Does anyone have any ideas/suggestions for a method to try and speed
> > this up?
>
> > --
> > 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%[email protected]>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> (\__/)
> (='.'=)This is Bunny. Copy and paste bunny into your
> (")_(")signature to help him gain world domination.

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