leaflet.stravasegments
v2.3.2
Published
Display Strava segments on a map!
Downloads
86
Readme
Leafet.StravaSegments
Display Strava segments on a map!
Here is a demo. And the associated source code.
Dependencies
Requires Leaflet 1.+
, FontAwesome 4.+
, @mapbox/polyline
and Leaflet.EasyButtons
.
See package.json for details.
Use it
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.
License
MIT