Is there a way to remove all pushpins? How would you do it?
I have tried 'objPin.delete()', where objPin is 'Mappoint.Pushpin', but it only deletes the last Pushpin created. I need something such as 'objPin.deleteAllPushpin().
I am writing an application using Mappoint. I have only a week to write and test the program.
To give you a complete understanding, here is my semi pseudocode:
Can you please point me to the right direction?Code:- Load Map - Start Timer with 5 seconds interval (run code below every 5 seconds) - [b]Clear all 'Pushpins' and 'BalloonStates'[/b] - Check SQL database for entries in the previous 5 Seconds - If entry found, - For each record, - Place 'Pushpin' on location - Display 'BalloonState' for pushpin - Else (No records were found for the last 5 seconds) - Retrieve the 1st record - Place 'Pushpin' on location - Display 'highlight' for Pushpin - Display 'Balloonstate' for Pushpin