nextzen / lrm-mapzen

Support for Mapzen Turn-by-Turn routing in Leaflet Routing Machine
https://mapzen.com/projects/turn-by-turn/
Other
86 stars 31 forks source link

showAlternatives not showing #35

Closed moran0013 closed 8 years ago

moran0013 commented 8 years ago

when using the lrm control, like so:

LRM.control({
    waypoints: points,
    geocoder: gCoder,
    routeWhileDragging: routeDrag,
    router: L.Routing.valhalla(apiKey, "auto", { "serviceUrl": serviceUrl }),
    showAlternatives: true,
    formatter: new LRMValhalla.Formatter()
}).addTo(map);

no alternative routes are shown. Is this functionality currently supported? none of the examples seemed to show it. we have fed in control points that show an alternative route using an alternate routing service.

thoughts?

dgearhart commented 8 years ago

sorry, alternates are currently not supported

moran0013 commented 8 years ago

ah. thanks. solves that problem.