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

Calculate Routes - Suppressing Directions

This is a discussion on Calculate Routes - Suppressing Directions within the MapPoint Desktop 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 ...

  1. #1
    EdB
    EdB is offline Member Green Belt
    Join Date
    Aug 2002
    Posts
    56

    Calculate Routes - Suppressing Directions

    After performing an objRoute.Calculate method on a Control embedded in my VB form, the visual of the route is displayed along with the Directions pane. I have not been able to find a way to either prevent the directions pane from appearing or to close it programmitcally.

    Is either possible?

    I tried the Directions.Expanded=geoFalse with no luck.

    Thanks

  2. #2
    John Meyer's Avatar
    John Meyer is offline Senior Member Blue Belt
    Join Date
    Jul 2002
    Posts
    478
    You need to set the ItineraryVisible property to False.

  3. #3
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    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

  4. #4
    John Meyer's Avatar
    John Meyer is offline Senior Member Blue Belt
    Join Date
    Jul 2002
    Posts
    478
    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.

  5. #5
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    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

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. MapPoint and Bad Directions ---
    By SheilaSheila in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 01-24-2005, 11:42 AM
  2. driving directions
    By impala454 in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 12-11-2004, 09:49 AM
  3. objRoute.Calculate method displays directions pane....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 07-26-2002, 01:52 PM
  4. I need to calculate routes from a single start poi....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 06-13-2002, 03:51 AM
  5. Can MapPoint 2002 calculate a route and directions....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 07-31-2001, 06:05 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 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 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83