MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




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 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 ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-17-2006
Senior Member
Green Belt
 
Join Date: Jul 2005
Posts: 105
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 04-18-2006
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,112
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 ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
add, delete, easily, pushpins


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -5. The time now is 05:41 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54