MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth Users and Developers




Drawing route as I go.

This is a discussion on Drawing route as I go. within the MapPoint 2006/2009 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 ...


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

Today's Posts Twitter Feed 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 02-07-2006
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 02-08-2006
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,177
Hi,

yan connect the positions with arrows.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 02-08-2006
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 02-09-2006
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,177
Hi,

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

Code:
Mp.ActiveMap.AddPushPin(Loc, Name);
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 02-09-2006
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 02-10-2006
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,177
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 ?.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7 (permalink)  
Old 02-10-2006
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.
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
drawing, route


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
Drawing an authorized tunnel around a route jlderrien MapPoint 2006/2009 Discussion 1 03-14-2006 02:45 PM
Drawing more than one route at a time chpw MapPoint 2006/2009 Discussion 6 02-28-2006 03:20 AM
route object to drawing object Anonymous MapPoint 2006/2009 Discussion 1 05-09-2003 10:29 PM
MapPoint Route Drawing through Lat/Long Anonymous MapPoint 2006/2009 Discussion 1 11-04-2002 05:37 PM
MapPoint Route Drawing Anonymous MapPoint 2006/2009 Discussion 0 10-21-2002 09:05 AM


All times are GMT -5. The time now is 10:35 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 RC2
MP2K Magazine
Visitor Map

Luxor Holiday
Book your Luxor holiday through UlookUbook and visit this destination stooped in history.



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