Merge pull request #132 from bagage/feat_add_strava

Add leaflet strava segments
This commit is contained in:
Norbert Renner 2018-09-10 20:43:38 +02:00 committed by GitHub
commit db11eb00fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 1 deletions

View file

@ -240,6 +240,14 @@
drawToolbar = L.easyBar([drawButton, nogos.getButton(), deleteButton]).addTo(map);
nogos.preventRoutePointOnCreate(routing);
if (BR.conf.stravaToken) {
new L.Control.StravaSegments(
{
stravaToken: BR.conf.stravaToken
})
.addTo(map);
}
map.addControl(new BR.OpacitySlider({
callback: L.bind(routing.setOpacity, routing)
}));