Optional
options: ControlOptionsOptional
mapCalculates the route between the current waypoints and presents in the itinerary, displaying the first result on the map
Optional
options: ControlRoutingOptionsSets the waypoints of the control’s plan
Allows adding, removing or replacing waypoints in the control’s plan. Syntax is the same as in Array#splice.
Rest
...newWaypoints: Waypoint[]Generated using TypeDoc
Combining the other classes into a full routing user interface. The main class of the plugin. Extends L.Control.
Usage example