MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Fix Direction Location

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, ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion > Wish List

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-21-2003
Junior Member
Yellow Belt
 
Join Date: Mar 2003
Posts: 12
Fix Direction Location

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, 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

.
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
direction, fix, location


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


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