Hi,
I'd like to draw more than one route at a time. Because MapPoints object model knows only one route object, this seems unpossible. Maybe there is a solution to generate some shape from a route?
TIA
Chris Werner
This is a discussion on Drawing more than one route at a time within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi, I'd like to draw more than one route at a time. Because MapPoints object model knows only one route ...
Hi,
I'd like to draw more than one route at a time. Because MapPoints object model knows only one route object, this seems unpossible. Maybe there is a solution to generate some shape from a route?
TIA
Chris Werner
Hi,
An approach could be to have multiple instances of the Mappoint object in several threads, drawing their route, and copyToClipBoard when finished. Of course all threads have to synchronize as yo have only 1 clipboard. Also it will eat a lot of memory![]()
rgds, Wilfried Mestdagh
www.mestdagh.biz
www.comfortsoftware.be
www.expertsoftware.be
MapPoint coding demo
MapPoint 2011 available, buy now
Thanks for the answer. Okay, calculating different routes in different threads may be possible. But how to make this trick with the clipboard?
Chris Werner
Hi,
From top of my head there is a CopyToClipBoard API function.
rgds, Wilfried Mestdagh
www.mestdagh.biz
www.comfortsoftware.be
www.expertsoftware.be
MapPoint coding demo
MapPoint 2011 available, buy now
Sounds a mess, Wilfried!
At first it seems that a route's coordinates can be extracted and these could be used to draw a polyline shape. However, the locations supplied by MapPoint are intended for "ideal viewing" of each segment, and not for reproducing the route.
One solution (used by TourSolver - see my website for details) is to use your own data and routing engine. This works well but the data costs, of course.
Richard
Winwaed Software Technology LLC
http://www.winwaed.com
See http://www.mapping-tools.com for MapPoint Tools
Hi Richard,
Yeah, but my brain sometime is a mess alsoSounds a mess
Looked at Toursolver. Seems very good. Will think on you when I need that feature !
rgds, Wilfried Mestdagh
www.mestdagh.biz
www.comfortsoftware.be
www.expertsoftware.be
MapPoint coding demo
MapPoint 2011 available, buy now
Thanks for all your effords (messed or not). It seems that I (and my customer) have to abstain from this feature. That's deplorable.
Thanks again,
Chris Werner
There are currently 1 users browsing this thread. (0 members and 1 guests)