by andreleitao » Mon Oct 05, 2009 1:37 am
When your new geo points are updated, is recommended to clear all map overlays and add the newer overlays to it. But be carefull if you want to control the visualization of pins individually... clear a single Overlay from map overlays list can be dangerous, because MapView is iterating over its overlays list, and it can throws an unexpected ConcurrentModificationException.
I do recommend:
1- get all your overlays
2- add them to MapView overlays
WHEN PINS MUST BE UPDATED:
3- remove all MapView overlays
4- get all your overlays
5- add them to MapView overlays
Remember:
map overlays are drawn automatically.
Has this answer helped you?