lrm-straightline
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i lrm-straightline

Weekly Downloads

13

Version

0.1.1

License

ISC

Unpacked Size

19.5 kB

Total Files

11

Last publish

Collaborators

  • tmuguet