Dear All,

I have a situation where I need to tell users where the nearby ATMs are 
located. The problem is if the bank has 10000 ATMs.

When I use Maps for web programmings, I usually only load ATMs on visible 
area. When user do panning or zooming out, I request back-end server to 
provide more ATMs and redraw all overlay items. But I don't think we can 
use this technique on mobile device.

If I use technique from 
https://developers.google.com/maps/documentation/android/hello-mapview, I 
get a performance hit. 

What is the best way to handle this? We know that there are some concerns:
1. Loading all ATMs will eat memory a lot.
2. Loading ATMs on visible area may eat a lot of data connection as users 
do panning. (I don't know either how to get the visible coordinate border)

I've done some experiments. Loading 1000 overlay items (ATMs) (1000 x 
itemizedOverlay.addOverlayItem(anAtm);  and 1 x populate()) has consumed 5 
seconds.

Is there any best practice in doing this? I really hope Google would give 
developers the best practice.

I've also posted this question here 
http://stackoverflow.com/questions/12196158/best-practice-in-handling-huge-overlay-items-on-android-maps

Thanks

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to