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

MapPoint 2004 Active-X control: how to "bump" pus

This is a discussion on MapPoint 2004 Active-X control: how to "bump" pus within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi, I'm building an application that will use MapPoint to plot route efficiency for our delivery trucks. When we have ...

  1. #1
    citrix_99301's Avatar
    citrix_99301 is offline Junior Member Yellow Belt
    Join Date
    Mar 2006
    Posts
    17

    MapPoint 2004 Active-X control: how to "bump" pus

    Hi,

    I'm building an application that will use MapPoint to plot route efficiency for our delivery trucks.

    When we have two or more invoices to a certain address, it puts two pushpins on the map, one directly on top of the other. This is what I expected.

    It's a bit cumbersome for the user to have to click on the pushpin, select which of the underlying invoices to review, then click the pushpin again to bring up the pin's notes in a balloon.

    Assuming I populate an array of pushpins and their respective locations on the map, is it possible to bump a pushpin a little bit so that it's not directly over the of another one? By bump, I mean change the x and y coordinates on the map just enough so that it doesn't cover the other pin(s).

    Any ideas?

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

    I think the best you can do is to give both pushpins a littel difference in lat/long so that they are next to each other when zoomed in.

  3. #3
    citrix_99301's Avatar
    citrix_99301 is offline Junior Member Yellow Belt
    Join Date
    Mar 2006
    Posts
    17

    MapPoint 2004 Active-X control: how to "bump" pus

    Wilfried,

    I see that MapPoint.Pushpin doesn't have any properties for latitude or longitude.

    How does one go about changing the pushpin location's lat/lon coordinates?

    Thanks again for your help, please bear with me I'm a bit new to MapPoint.

    Andre Ranieri

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

    Correct, but a pushpin has a location object that can be changed. For example this example move a pushpin to a different location if found:

    Code:
            private void MovePP(string name, double lat, double lon)
            {
                Location loc = mp.ActiveMap.GetLocation(lat, lon, 1);
                Pushpin pp = mp.ActiveMap.FindPushpin(name);
                if (pp == null)
                    return;
                pp.Location = loc;
                pp.GoTo();
            }

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Mappoint exception "Call was rejected by callee"
    By jliao81 in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 06-03-2005, 08:53 AM
  2. Do I need "Autoroute Europe", if I install "M
    By bigtail in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 03-24-2004, 12:58 AM
  3. mappoint and "follow gps position" menu
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 03-12-2004, 06:58 PM
  4. "Microsoft Mappoint" writing and Pushpin Highligth
    By feanor in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 03-12-2003, 05:47 AM
  5. MapPoint 2002 in VB6 "Program is not responding"
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 11-14-2002, 11:51 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