View Single Post

  #2 (permalink)  
Old 04-14-2008
Wilfried Wilfried is offline
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
Re: delete previous pushpin toadd new one.

Hi,

a Pushpin has a Delete method. So if you have somewhere:
Code:
PushPin pp = MP.ActiveMap.AddPushpin(location, name);
pp.Delete();
you can also hold an array of your pushpins. Or you can find a specific pushpin to delete with FindPushpin() method.

If you want to move a pushpin or replace it then you can also change the Location property of it to move it to a next location on the map. Less resources and it saves time.
Reply With Quote