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 3 of 3

clearing pushpins

This is a discussion on clearing pushpins within the MapPoint Desktop 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 - ...

  1. #1
    starbuck's Avatar
    starbuck is offline 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

  2. #2
    Jack is offline 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.

  3. #3
    starbuck's Avatar
    starbuck is offline Member Green Belt
    Join Date
    Oct 2003
    Posts
    68

    cool

    Thats done the trick

    Thanks

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Creating a subset of Pushpins from a set of pushpins
    By paf33 in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 08-09-2005, 05:54 AM
  2. Clearing all pushpin
    By Gianmaria in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 05-06-2005, 11:31 AM
  3. How to Calculate 2 itineraries without clearing ActiveRoute
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 12-13-2004, 10:54 AM
  4. Clearing the
    By Anonymous in forum MP2K Magazine Articles
    Replies: 0
    Last Post: 07-13-2001, 12:48 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 26 27 28 29 30 31 32 33 34 35 36