Community of VE/MapPoint Users and Developers
This is a discussion on Deleting pushpins within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I can easily add a pushpin using the activeMap.AddPushpin( pointOfInterest, name) function. But what if I want to delete them ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Deleting pushpins activeMap.AddPushpin( pointOfInterest, name) function. But what if I want to delete them all? Is there a MapPoint function which removes the pushpins?? thanks, Bob |
| |||
| Re: Deleting pushpins
I need the C# version of this code: 'delete all datasets For Each objDS In objMapNew.DataSets If objDS.RecordCount > 0 And (objDS.DataMapType = 4 Or objDS.DataMapType = 10) Then objDS.Delete End If Next I am having trouble in particular with converting this: objDS.DataMapType = 4 to this: geoDataMapTypePushpin I can not find the how to reference it. Bob |
| |||
| Re: Deleting pushpins
if (axMappointControl2.ActiveMap != null) { foreach (MapPoint.DataSet dataSet in axMappointControl2.ActiveMap.DataSets) { if (dataSet.RecordCount > 0 && (dataSet.DataMapType == MapPoint.GeoDataMapType.geoDataMapTypePushpin || dataSet.DataMapType == MapPoint.GeoDataMapType.geoDataMapTypeTerritory)) { dataSet.Delete(); } } } Bob |
![]() |
| Tags |
| deleting, pushpins |
| ||||
| Posted By | For | Type | Date | |
| Using MapPoint In Delphi - MapPoint Articles - MP2K Magazine | This thread | Refback | 02-24-2008 02:25 PM | |
| Reverse Geocoding, Another Method - MapPoint Articles - MP2K Magazine | This thread | Refback | 02-20-2008 07:47 PM | |
| Finding the Starting Point of a Route - MapPoint Articles - MP2K Magazine | This thread | Refback | 02-20-2008 07:45 PM | |
| The Magazine for MapPoint - MP2K Magazine | This thread | Refback | 02-20-2008 10:06 AM | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Tracking User Actions in Maps (deleting pushpins) | joe lion | Development | 2 | 12-07-2007 10:04 AM |
| Deleting selected objects on the map?? | VC_Man | MapPoint 2006/2009 Discussion | 5 | 02-07-2007 02:59 AM |
| Deleting pushpins in bulk | brianmcg | MapPoint 2006/2009 Discussion | 1 | 06-22-2006 02:08 PM |
| Stop Users from Deleting or Cutting Pushpins from map view | Yazzy | MapPoint 2006/2009 Discussion | 1 | 05-26-2005 03:56 PM |
| New map (Deleting) | Anonymous | MapPoint 2006/2009 Discussion | 0 | 07-21-2004 04:21 AM |