Re: [android-developers] Multiple Overlays on Map slowing down pan/zoom
On Sat, Sep 15, 2012 at 12:53 AM, Apurva Goyal <tech.apurva@gmail.com> wrote:
There are around 200 road segments and each segment has an attribute that decides the color of road segment. I therefore have to add each segment as a separate overlay on map.
No you don't. Have one Overlay that does custom drawing and renders the colors as necessary.
Also, it's unlikely you'll need all 200 segments at once, so cull out the ones you can't see and don't draw them.
-------------------------------------------------------------------------------------------------
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