Are you sure you want to update the map in real time? In terms of a mobile application users are not going to have the application open to the map view constantly they will open the app and observe the current state of the road location they are interested in.
All you really need to do is fetch the latest data when the view is opened and update the current event list. Al. On Jun 21, 12:19 pm, Lex <[email protected]> wrote: > Hi everyone, > > I am developing a prototype application which features basic > navigation (updating of own location on the map) and displays live > traffic events as traffic sign icons on the map. The traffic events > will be fetched from a server over a UDP connection. (I haven't > implemented this as I don't have the traffic message specs yet). > > The idea is to display traffic events in real-time and also delete > them when they have expired. I figured out that what I need for this > is one or more ItemizedOverlays with dynamic items. I found this post, > > http://groups.google.com/group/android-developers/browse_thread/threa... > > which seems to be similar to my application. So the circular process > is: > 1. fetch traffic data from server > 2. populate an ItemizedOverlay object containing traffic events > 3. update the map accordingy when the items in the overlay have > changed > > Apparently in the MapView (or Map Activity?) I need some sort of a > listener for changes in the ItemizedOverlay object. What is the best > practice for doing this? > > Thanks, Lex --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

