Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 

Leaflet Routing Machine / Straight Line

npm version

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);

About

Compute straight lines in Leaflet Routing Machine

Resources

License

Packages

No packages published