Skip to content
Compute straight lines in Leaflet Routing Machine
JavaScript HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
dist
src
.eslintrc.json
.gitignore
LICENSE.md
README.md
index.html
package-lock.json
package.json

README.md

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);
You can’t perform that action at this time.