Android Question MarkerOverlay1 .RemoveAllItems not working

davelew1s

Active Member
Licensed User
Longtime User
Hi!
I am having a problem with 'MarkerOverlay1 .RemoveAllItems '...... 2 examples are enclosed they load data from a web site (aircraft) and display them on the map. Ex 1 works but the icon (an aeroplane) points in the direction of the last item in the data but 'MarkerOverlay1 .RemoveAllItems' works ok and the planes change position(lat and lon).
In ex 2 I have moved the default icon code into the loop, this works and puts the planes on the map pointing in the direction of flight but 'MarkerOverlay1 .RemoveAllItems ' doesn't remove the icons after the first time, so the icons form a trail and the app crashes.
Any help or suggestions?
I am using this on a Galaxy Tab 7
 

Attachments

  • Example 1.zip
    11.9 KB · Views: 122
  • Example 2.zip
    11.9 KB · Views: 125
Cookies are required to use this site. You must accept them to continue using the site. Learn more…