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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.1
    28
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.1
    28
  • 0.1.0
    2

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