Display Strava segments on a map!
Here is a demo. And the associated source code.
Requires Leaflet 1.+
, FontAwesome 4.+
, @mapbox/polyline
and Leaflet.EasyButtons
.
See package.json for details.
Install it:
yarn add leaflet.stravasegments
# or
npm install --save leaflet.stravasegments
Then add it to the map:
L.control.stravaSegments({
stravaToken: '<strava API token>'
}).addTo(map);
<strava API token>
must be retrieved from Strava website. Default public token is limited to 600 reqs/15min and 30k reqs/day.
MIT