lrm-straightline
v0.1.1
Published
Straight lines routing for Leaflet Routing Machine
Downloads
70
Readme
Leaflet Routing Machine / Straight Line
Extends Leaflet Routing Machine to compute straight lines.
Using
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);