Community of VE/MapPoint Users and Developers
This is a discussion on How to handle track of multiple objects at the same time within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Language: VC++ Using: Mappoint API embedded in my own app. Hi best programmers, I would like to have some advise ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| How to handle track of multiple objects at the same time Using: Mappoint API embedded in my own app. Hi best programmers, I would like to have some advise of you. On the map I want to be able to follow several obejcts (in the form of cars or persons) at the same time with their passed points. For example I have object A and object B, I can see both A and B simultaneously where they go. I get the positions via a network. I can also click on a previous point to see at wich time they where on that place. Now suppose I have let's say about six of those objects, than what is the best way to program it? Should I use threads or is there a way to put all the pushpins of a certain object in some kind of a collection....? Does somebody have a suggestion, it's just to get an idea of wich direction I have to think. Thank you very much. |
| |||
| Re: How to handle track of multiple objects at the same time
Hi, In C# you have 'user data objects', in Delphi and CBuilder a 'TList', C++ probably will have something similar ?
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
| Re: How to handle track of multiple objects at the same time
Hi Wilfried, Thank you for your reply, in MFC (wich I use) there is something like CList. I think that is what you mean. Should that be usefull to handle and proces multiple targets at the same time on the map? Can you give me a simple example? By the way, I really appreciate your help on this forum. Not everybody makes some precious time free to help others. So thank you Wilfried. |
| |||
| Re: How to handle track of multiple objects at the same time
Hi all, I want to solve this problem on the following way. For each target or object I want to follow, I'll create a pushpin set (from data set). So all the pushpins that belongs to a certain target/object are saved in its pushpin set. So when I select an old pushpin of a certain target/object, I'll get the information in the balloonfield to which target/object it belongs. Also can I draw the route based on all pushpins in the certain dataset of the target, right?? Now another problem rises up, how can I during runtime create......... Hmmm wait a minute, now I've to make an array which can find the right target/object-name and there you can find the reference of the created pushipin set. Where you can get, for example, all the pushpin info's. Is that an idea? If somebody has a better suggestion, than I'm open for it ![]() |
| |||
| Re: How to handle track of multiple objects at the same time
Hi, Yep you are on the right track I did a quick look into the CList, and yes that's what I meanth. You mention to use several dataset, yes also good solution, and then use array (or a CList) to hold the refernces. I see there is an CArray class also. As far as I can see it is more comparable with the TList I mentioned in Delphi and CBuilder. Thank you for the compliment. I try to look at the forum at least once a day, but I have too mutch work, so sometime there is no time left
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
|
Thank you too Wilfried, I used a gps-navigator combined with Mappoint 2006 to get on the right track I think now I know how to solve this problem. Take a good rest my friend, programming is not all that. So when you rest all out, you can crunch the bits and the bytes in your software |
![]() |
| Tags |
| handle, multiple, objects, time, track |
| ||||
| Posted By | For | Type | Date | |
| MapPoint Articles - MP2K Magazine | This thread | Refback | 12-17-2006 09:27 PM | |
| Implementing Location-Based Functionalities with the MapPoint Web Service - MapPoint Articles - MP2K Magazine | This thread | Refback | 12-17-2006 07:32 PM | |
| Map Visitors - Powered by Virtual Earth | This thread | Refback | 12-13-2006 02:32 PM | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How best to keep track of MapPoint.Pushpins | BobFromBoston | MapPoint 2006/2009 Discussion | 1 | 10-26-2005 11:28 AM |
| Can multiple users view and edit one map at the same time? | Anonymous | MapPoint 2006/2009 Discussion | 1 | 01-20-2005 08:56 AM |
| How to keep track of 500+ independent reps | yourbaglady | MapPoint 2006/2009 Discussion | 1 | 07-29-2004 07:56 PM |
| Is it possible to get a direct HANDLE to the Map? .... | Anonymous | MapPoint 2006/2009 Discussion | 2 | 06-19-2002 09:05 AM |
| How do I import multiple datasets at one time, eac.... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 02-08-2002 03:15 PM |
Flights from Birmingham
Here at Holiday Hypermarket you can book fantastic cheap flights from Birmingham Airport. Check out the great range of destinations.
Business Travel Agent
Leading Business Travel Agent. Personal service is at the heart of our business. Talk to one of our travel agents today.
Jamaica Holiday
Fancy a Jamaica Holiday? Then visit dealchecker.co.uk and find out what the big deal is. Book a bargain when you book online.
Barbados Holidays
Barbados holidays can be a wonderful break from the rat race or an exciting, action packed adventure. Plan the perfect holiday in Barbados.
Cheap Spain Holidays
Stay well informed when you are searching for cheap holidays online. For useful advice on when to book cheap Spain holidays make sure you look on ulookubook.com
Package Holidays
With the help of Travel.co.uk you can find the package holidays of your dreams.
Holidays to Goa
Golden beaches, coconut trees. Visit On The Beach for holidays to Goa, and experience India!