Community of VE/MapPoint Users and Developers
This is a discussion on Fix Direction Location within the Wish List forums, part of the MapPoint 2006/2009 Discussion category; In order to display the best view of a Direction, the following code should work: Set MPC.ActiveMap.Location = MPC.ActiveMap.ActiveRoute.Directions(n).Location But, ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Fix Direction Location Set MPC.ActiveMap.Location = MPC.ActiveMap.ActiveRoute.Directions(n).Location But, any time Directions(n) is a route segment past the first intermediate waypoint, you don't get the best view of Directions(n). Instead, you get the best view of some other Direction. If this bug were not present, you could let users choose route segments by clicking on the map: 1) Find the location that the user clicked by using the X, Y values of the mouse up event, 2) Use the DistanceTo function to find the route segment closest to the location clicked on. But when the location of a direction is incorrect, objMap.XYToLocation(X,Y).DistanceTo(objRoute.Direc tions(n).Location) does not yield the correct distance from a mouse click to a route segment: and, as a result, the following code does not highlight the chosen route segment: objDirections(n).Select . |
![]() |
| Tags |
| direction, fix, location |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Getting direction from one pushpin to another... | jonknapek | MapPoint 2006/2009 Discussion | 2 | 11-16-2005 10:36 AM |
| Route Direction Location Instruction | disweij | MapPoint 2006/2009 Discussion | 3 | 10-17-2005 02:45 PM |
| Mappoint direction HELP | Anonymous | MapPoint 2006/2009 Discussion | 0 | 07-29-2003 04:52 PM |
| How to Add pushpin to a MapPoint Direction every 50m.? | Anonymous | MapPoint 2006/2009 Discussion | 3 | 06-26-2003 03:15 PM |
| Direction.location all wrong when more then 2 waypoints.? | johnny | MapPoint 2006/2009 Discussion | 0 | 01-20-2003 11:36 AM |