Sorry but I still don't get it.....
Downloaded your sample.
Added som buttons (to use in another forum post)
If you from the FTP opens RoutingTest.zip
And press "Test 1" button.
1.) Still the drawn route is longer than the end point.
2.) If i still have to use GetSingleLine route to ONLY get the route I need how do i then display that???
This is my display singleline route problem:
Since routes.add() wants a multishape and getsinglelineroute() is a lineshape so again... so strange i just want to add my a to b route...
RoutingLayer routingLayer = (RoutingLayer)((LayerOverlay)winformsMap1.Overlays["RoutingOverlay"]).Layers["RoutingLayer"];
routingLayer.Routes.Clear();
routingLayer.Routes.Add(_route.GetSingleLineRoute());
What is the correct way to add my singlelineroute to my routing layer??
- Niels