[android-developers] Re: Problem with large number of markers on google map
Guess we read the same tutorial :-)
Like TreKing wrote: Remove all those populate calls and pay attention
to your draw method.
I can handle 7000 objects on a Samsung Galaxy S (but not on slower
phones).
Greetings from Lucerne,
Stephan
On 17 Jan., 17:52, TreKing <treking...@gmail.com> wrote:
> On Mon, Jan 17, 2011 at 10:43 AM, bobetko <bobe...@gmail.com> wrote:
> > The thing is, my Nexus One can't handle map with all those markers.
> > It takes around 15 seconds just to draw 500 markers. Then when all
> > drawn, map is not quite smooth. It is sort of hard to zoom and
> > navigate around. It can be done, but experience is bad and I would like to
> > see if something can be done there.
>
> First, the code you posted you're calling populate() each time you add a new
> overlay to your list. That's slow. Add all of you items into the list, THEN
> call populate ONCE to prepare for drawing.
> Second, I sincerely hope the code you posted is not what you're doing each
> draw call.
> Third, see this thread for a similar discussion:https://groups.google.com/group/android-developers/browse_thread/thre...
>
> --------------------------------------------------------------------------- ----------------------
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home