leaflet-trackstats
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

Leaflet TrackStats

Leaflet TrackStats is a plugin for Leaflet to compute altitude/slope statistics on paths.

L.TrackStats extends Leaflet's Polyline objects to include methods to compute the stats. It also integrates nicely with Leaflet TrackDrawer.

This plugin supports GeoPortail, Open-Elevation and Open Topo Data as data providers, but it can easily be extended for new data providers by implementing the IFetcher interface.

Demo

A real-case usage of this plugin is for map2gpx.

API

See doc.

Dependencies (7)

Dev Dependencies (32)

Package Sidebar

Install

npm i leaflet-trackstats

Weekly Downloads

2

Version

0.3.0

License

MIT

Unpacked Size

531 kB

Total Files

60

Last publish

Collaborators

  • tmuguet