0.1.1 • Published 5 years ago

lrm-straightline v0.1.1

Weekly downloads
4
License
ISC
Repository
github
Last release
5 years ago

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