In my app I am drawing bus routes on top of a MapView using Overlay. 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