Community of VE/MapPoint Users and Developers
This is a discussion on Need to add Pushpins, but be able to delete them easily within the MapPoint 2006/2009 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 ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Need to add Pushpins, but be able to delete them easily 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 |
| |||
|
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 ?
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
| Tags |
| add, delete, easily, pushpins |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| don't delete pushpin | sdonta | MapPoint 2006/2009 Discussion | 1 | 03-03-2005 01:57 PM |
| Don't delete my pushpins! | Anonymous | MapPoint 2006/2009 Discussion | 2 | 06-15-2004 12:39 PM |
| Add and Delete pushpins on mappoint | Anonymous | MapPoint 2006/2009 Discussion | 3 | 06-12-2003 02:55 AM |
| delete countries | Anonymous | MapPoint 2006/2009 Discussion | 1 | 11-19-2002 11:59 AM |
| Is there a way in MP2002 to delete addresses from .... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 05-06-2002 09:15 AM |