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

Drawing route as I go.

This is a discussion on Drawing route as I go. within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi, Iím a total nub with MapPoint, started working with it a coupleof days ago. I am trying to develop ...

  1. #1
    z_darius is offline Junior Member White Belt
    Join Date
    Feb 2006
    Posts
    4

    Drawing route as I go.

    Hi,

    Iím a total nub with MapPoint, started working with it a coupleof days ago. I am trying to develop an application that will allow recording in (near) real time the route a vehicle has taken - as opposed to planning a route. It is not known in advance where the vehicle will go and which roads it will take. I need to know where the vehicle has been and which roads were used to get there.

    I am working with Delphi and MP 2004 and for now all I have working is the basic map display, dynamic update of the vehicle position and a trick or two with pushpins, plus some minor stuff here and there.

    I tried plotting the route the vehicle has traveled using AddLine every few seconds but soon I realized this is taking a lot of resources and causes a lot of flicker after a number of line objects have been added.

    Is it possible to draw pixel level lines/dots on a map to track the route the vehicle has traveled so far? Any other resource conscious ideas?

    Thanks.

  2. #2
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433

  3. #3
    z_darius is offline Junior Member White Belt
    Join Date
    Feb 2006
    Posts
    4
    I would be happy with just marking the positions with dots, without using arrows,which I understand are the same class as lines.

    Arrows would then put me back in square one, or am I not understanding your suggestion correctly?

  4. #4
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    Hi,

    Nooo it was me who was not understanding your question. Use

    Code:
    Mp.ActiveMap.AddPushPin(Loc, Name);

  5. #5
    z_darius is offline Junior Member White Belt
    Join Date
    Feb 2006
    Posts
    4
    I tried that.

    After adding over 2000 pushpins a 1.73HGz laptop with 1 GB of RAM and 128MB ATI card would take forever to refresh the screen.

    I guess MP is not really suitable for my purpose. A dissapointmet because I thought dropping pixels on a map's canvas would be a pretty basic operation one might need.

    I'll try to ask around Delphi developers if someone has an idea how to write to MP's canvas through Windows API

    Thanks for your help.

  6. #6
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    Hi,

    You can also add the pushpins when they are needed. For example depending on the user, depending on the size of the map.

    If you really need so mutch at same time I have other suggestion. Copy the map to a TImage and draw the puslpins in Delphi. Maybe this go mutch faster. I think the copy of the map image will go very fast.

    Or even better. Make a Transparant Form. Put the form in exact same size and position as your main form where mappoint is on, and keep it a s shuch. then draw icons on the transparant form. This way you have mappoint with layers and super speed drawing Of corse yoiu have to keep this form on top of mappoint form, maybe tricky here and there ?.

  7. #7
    z_darius is offline Junior Member White Belt
    Join Date
    Feb 2006
    Posts
    4
    I did the TImage thing yesterday and and set a GPS simulator to run overnight. I was pleased to find my vehicle icon 7 hours later, having travelled from Niagara, Ontario to the Middle of the Atlantic Ocean and the system was very much responsive. Redrawing was faster too, and I now have the options to put whatever I want on the canvas.

    I still have a mountain of issues to address but for now I may be seeing a little spark of light glimmering at the end of the tunnel

    I will try your suggestion of the transparent form over the weekend.

    Thank you for your suggestions.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Drawing an authorized tunnel around a route
    By jlderrien in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 03-14-2006, 03:45 PM
  2. Drawing more than one route at a time
    By chpw in forum MapPoint Desktop Discussion
    Replies: 6
    Last Post: 02-28-2006, 04:20 AM
  3. route object to drawing object
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 05-09-2003, 11:29 PM
  4. MapPoint Route Drawing through Lat/Long
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 11-04-2002, 06:37 PM
  5. MapPoint Route Drawing
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 10-21-2002, 10:05 AM

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 84 85 86 87 88 89 90 91 92 93 94 95 96