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

Pushpin set question

This is a discussion on Pushpin set question within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi, i just started developing to Mappoint in VB6, and i have a question about pushpins. How can i create ...

  1. #1
    NoDed is offline Junior Member White Belt
    Join Date
    Nov 2005
    Posts
    3

    Pushpin set question

    Hi, i just started developing to Mappoint in VB6, and i have a question about pushpins.

    How can i create and then add a pushpin to a dataset and then display the dataset in the map?
    I think that might be the best thing to do if you want to add a bunch of pushpins at the same time (and the fastest way too).

    Thanks in advance.

  2. #2
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    Hi,

    Code:
                Location loc = mp.ActiveMap.GetLocation(lat, lon, alt);
                Pushpin pp  = mp.ActiveMap.AddPushpin(loc, "Name");
                pp.Symbol = 1;
                pp.Note = "test\r\n" + "and next line";
                pp.BalloonState = GeoBalloonState.geoDisplayBalloon;
                pp.Highlight = true;
                //PP.GoTo();
                mp.ActiveMap.GoToLatLong(lat, lon, alt);
    Does this answer your question?

  3. #3
    NoDed is offline Junior Member White Belt
    Join Date
    Nov 2005
    Posts
    3
    Hi Wilfried,

    No, it doesn't, I know how to create a pushpin, but i don't know how to create a set of them, i want to create a set because inserting pushpin by pushpin is very slow because MapPoint always refresh all the map and i thought that if I create a set of pushpin and add the set it could be faster.

    Thanks

  4. #4
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    Hi,

    Now I understeand more of what you wants. No the AddPushPin is the only method you can use. Even if you use another dataset for the pushpins you have to add them 1 by 1.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Lat/Long with Pushpin -- question?
    By onegalacticwino in forum Products: Pushpin Tool, Single State Mapper
    Replies: 2
    Last Post: 10-25-2004, 10:23 AM
  2. Pushpin programming question
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 07-16-2004, 04:08 PM
  3. Pushpin question from newbie
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 03-24-2004, 12:26 PM
  4. pushpin note question
    By starbuck in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 12-03-2003, 05:26 PM
  5. Finding Pushpin Name by clicking on the Pushpin?(MP 2002)
    By NickSP in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 01-10-2003, 01:11 PM

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 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96