Skip to content
Computes altitude/slope statistics on Leaflet polylines
HTML JavaScript PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
dist
docs
src
test
.eslintrc.json
.gitignore
LICENSE
README.md
index.html
karma.conf.js
package-lock.json
package.json
slope.php

README.md

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 only supports MapQuest and GeoPortail as data providers (you will need your own API keys by the way), 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.

You can’t perform that action at this time.