So basically I should draw all road segments in a single overlay and just change colors in ondraw method?
On Saturday, September 15, 2012 3:08:42 AM UTC-4, TreKing wrote: > > On Sat, Sep 15, 2012 at 12:53 AM, Apurva Goyal > <[email protected]<javascript:> > > 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 <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 [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

