I have an array list containing objects from the class EventOnMap
. Every object has (amongs others) the member variables eventLatitude
, eventLongitude
and eventType
. The list is updated regurlarly (e.g. objects are inserted and deleted) up to several times a second. The list is not too big, it contains at most 50 elements.
On my mapView
I now would like to dynamically create and update overlays for all events depending on the list. The list represents the status of the overlays, that means I would like to update the overlay position when the coresponding longitude/latitude values change in the list.
Does anybody know a way to do this? Thanks in advance!