Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

leaflet-trackstats

tmuguet34MIT0.3.0TypeScript support: included

Computes altitude/slope statistics on Leaflet polylines

readme

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.