MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




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 2006/2009 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 ...


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 03-10-2006
citrix_99301's Avatar
Junior Member
Yellow Belt
 
Join Date: Mar 2006
Posts: 12
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?
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 03-14-2006
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,112
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.
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 03-14-2006
citrix_99301's Avatar
Junior Member
Yellow Belt
 
Join Date: Mar 2006
Posts: 12
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 03-18-2006
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,112
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();
        }
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
activex, bump, control, mappoint 2004, pus


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


All times are GMT -5. The time now is 03:13 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