Hi, I am currently moving a project from WebGMaps to FNCMaps. I am able to show the map and a calculated route (A to B), but I am not able to establish how to show alternative routes. - do you have an example at all please..?
Reviewing FAQs I have established that you have to link a RouteCalculator to the FNCMap and set the option to retrieve alternativeroutes. I also noted that the routes then have to be inspected via the "ARequest.Items" object returned with "RouteCalcGetRouteDirections".
In my example, I have done this, and I can see this object (items) contains 3 routes, but the map displays the first route by default. I want to offer a list of the alternative route options (items array) and when clicked, show this route on the FNCMap. Is there a way to tell the map which route to display (1, 2 or 3), or alternatively replace the route when selected etc...?
If I need to ignore default drawing (by FNC Map) and draw routes manually (from items array), do you have any examples of how I could do this please from the alternatives routes collection..?
Many thanks in advance.
Ian.