MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




clearing pushpins

This is a discussion on clearing pushpins within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; HI Using VB6 and MAP OCX methods When the map is refreshed we re-draw the pushpins with code below - ...


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 10-18-2003
starbuck's Avatar
Member
Green Belt
 
Join Date: Oct 2003
Posts: 68
clearing pushpins

HI
Using VB6 and MAP OCX methods

When the map is refreshed we re-draw the pushpins with code below -

Dim objLoc As MapPoint.Location

Set objLoc = mc1.ActiveMap.GetLocation(tb!MapLat, tb!maplon)
mc1.ActiveMap.AddPushpin(objLoc, jobText).BalloonState = geoDisplayBalloon

mc1 is the ocx
The problem is this is simply adding to the existing pins. Is there a quick of removing all existing pushpins before starting the refrsh.

Thanks in advance
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 10-19-2003
Junior Member
White Belt
 
Join Date: Jan 2003
Posts: 8
Dataset

Create your own pushpin dataset before adding the pushpins:
myMap.DataSets.AddPushpinSet "My DataSet"

And after adding each pushpin, move it to your dataset:
myPin.MoveTo myMap.DataSets.Item("My DataSet")

Later on you can just delete your dataset (which removes the pushpins as well) and repeat the same procedure.

Greetings, Jack.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 10-19-2003
starbuck's Avatar
Member
Green Belt
 
Join Date: Oct 2003
Posts: 68
cool

Thats done the trick

Thanks
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
clearing, 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
Creating a subset of Pushpins from a set of pushpins paf33 MapPoint 2006/2009 Discussion 3 08-09-2005 05:54 AM
Clearing all pushpin Gianmaria MapPoint 2006/2009 Discussion 4 05-06-2005 11:31 AM
How to Calculate 2 itineraries without clearing ActiveRoute Anonymous MapPoint 2006/2009 Discussion 2 12-13-2004 10:54 AM
Clearing the Anonymous MP2K Magazine Articles 0 07-13-2001 12:48 AM


All times are GMT -5. The time now is 01:53 PM.


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