Extends Leaflet Routing Machine to compute straight lines.
There's a single class exported by this module, L.Routing.StraightLine
. It implements the IRouter
interface:
var L = require('leaflet');
require('leaflet-routing-machine');
require('lrm-straightline');
L.Routing.control({
router: new L.Routing.StraightLine()
}).addTo(map);