Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 2 of 2

Need to add Pushpins, but be able to delete them easily

This is a discussion on Need to add Pushpins, but be able to delete them easily within the MapPoint Desktop Discussion forums, part of the Map Forums category; Greetings, I successfully use: MapPoint.Location pointOfInterest = activeMap.GetLocation( latitude, longitude, altitude ); activeMap.AddPushpin( pointOfInterest, name ); to add any pushpin ...

  1. #1
    BobFromBoston is offline Senior Member Green Belt
    Join Date
    Jul 2005
    Posts
    128

    Need to add Pushpins, but be able to delete them easily

    Greetings,

    I successfully use:

    MapPoint.Location pointOfInterest = activeMap.GetLocation( latitude, longitude, altitude );

    activeMap.AddPushpin( pointOfInterest, name );

    to add any pushpin I want to the MapPoint ActiveX. But I have not been so lucky when it comes to deleting a pushpin. To prevent me from having to create an entirely new map just because I need to remove as pushpin, I have used:

    pushpin.Delete();

    But I sometimes get an exception "RPC Server Unavailable" which then causes an incomplete removal of the pushpins I'm trying to remove.

    My question is what type of data structure should I use so that I can most easily remove the pushpins later, without running into that most annoying exception?

    Or is there a simple way to retrieve the pushpins from the active map?


    Thanks,
    Bob

  2. #2
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    Hi,

    Delete is the right method. But when does the error comes ? Is it when your remove a lots of PushPins in a loop ? How mutch time take this ?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. don't delete pushpin
    By sdonta in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 03-03-2005, 01:57 PM
  2. Don't delete my pushpins!
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 06-15-2004, 12:39 PM
  3. Add and Delete pushpins on mappoint
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 06-12-2003, 02:55 AM
  4. delete countries
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 11-19-2002, 11:59 AM
  5. Is there a way in MP2002 to delete addresses from ....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 05-06-2002, 09:15 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25