Community of VE/MapPoint Users and Developers
This is a discussion on Calculate Routes - Suppressing Directions within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; After performing an objRoute.Calculate method on a Control embedded in my VB form, the visual of the route is displayed ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Calculate Routes - Suppressing Directions Is either possible? I tried the Directions.Expanded=geoFalse with no luck. Thanks |
| ||||
|
You need to set the ItineraryVisible property to False.
__________________ John http://www.support-pc.com Order MapPoint 2006 Here https://secure.mp2kmag.com/?refer=support-PC |
| |||
| Can I turn off the visual display of Routes altogether ??
I'm working on a Freight Analysis program using MapPoint embedded in a VB app and I want to use the objRoute.Calculate, objRoute.Distance methods to determine the distance between 2 warehouses using major highways, but I don't want to see anything visually. Is it possible ?? I tried the LockWindow / UnlockWindow idea from another posting and that did not work. objMap.Distance returns a distance to me without messing visually with the map, but it only gives me "as the crow-flies" distances. Thanks, LES |
| ||||
|
How about having a second MapPoint Control (MappointControl2) on the form that is not visible. Get your location object for the two warehouses, caculate the route and do what you need to do with the result. Your first Control will not be effected visually.
__________________ John http://www.support-pc.com Order MapPoint 2006 Here https://secure.mp2kmag.com/?refer=support-PC |
| |||
|
That was one of my attempts. I can't remember the exact err.description, but it blows. I even tried making it visible and just setting its Z-order to place it exactly behind my main MapPointControl, but to no avail. I don't know if it's related, but I have noticed when I run my VB app with a mp control and run MapPoint, the real .exe simulatneously, that they can occassionally draw on each other's map ?? Another down fall of trying the second control is another instance of Mappoint.exe, the ActiveX control gets kicked off, consuming even more memory. Thanks for the try, LES |
![]() |
| Tags |
| calculate, directions, routes, suppressing |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| MapPoint and Bad Directions --- | SheilaSheila | MapPoint 2006/2009 Discussion | 2 | 01-24-2005 12:42 PM |
| driving directions | impala454 | MapPoint 2006/2009 Discussion | 1 | 12-11-2004 10:49 AM |
| objRoute.Calculate method displays directions pane.... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 07-26-2002 02:52 PM |
| I need to calculate routes from a single start poi.... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 06-13-2002 04:51 AM |
| Can MapPoint 2002 calculate a route and directions.... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 07-31-2001 07:05 PM |