leaflet.stravasegments
Advanced tools
Comparing version 1.1.1 to 1.2.0
@@ -5,2 +5,8 @@ 'use strict'; | ||
options: { | ||
runningIcon: 'fa-trophy', | ||
runningTitle: 'Show Strava running segments', | ||
bikingIcon: 'fa-bicycle', | ||
bikingTitle: 'Show Strava biking segments', | ||
loadingIcon: 'fa-spinner fa-pulse', | ||
loadingTitle: 'Loading…', | ||
stravaToken: null // strava API token, must be SET | ||
@@ -21,11 +27,11 @@ }, | ||
stateName: 'default', | ||
icon: 'fa-trophy', | ||
icon: self.options.runningIcon, | ||
onClick: function onClick() { | ||
self.showSegments(map, this, 'running'); | ||
}, | ||
title: 'Show Strava running segments' | ||
title: self.options.runningTitle | ||
}, { | ||
stateName: 'loading', | ||
icon: 'fa-spinner fa-pulse', | ||
title: 'Loading…' | ||
icon: self.options.loadingIcon, | ||
title: self.options.loadingTitle | ||
}] | ||
@@ -36,11 +42,11 @@ }); | ||
stateName: 'default', | ||
icon: 'fa-bicycle', | ||
icon: self.options.bikingIcon, | ||
onClick: function onClick() { | ||
self.showSegments(map, this, 'biking'); | ||
}, | ||
title: 'Show Strava biking segments' | ||
title: self.options.bikingTitle | ||
}, { | ||
stateName: 'loading', | ||
icon: 'fa-spinner fa-pulse', | ||
title: 'Loading…' | ||
icon: self.options.loadingIcon, | ||
title: self.options.loadingTitle | ||
}] | ||
@@ -47,0 +53,0 @@ }); |
{ | ||
"name": "leaflet.stravasegments", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"description": "Display Strava segments on a map!", | ||
@@ -11,3 +11,3 @@ "main": "dist/L.StravaSegments.js", | ||
"build": "babel *.js --presets babel-preset-es2015 --out-dir dist/", | ||
"prepublish": "npm run build && git commit dist -m 'Update dist' || true" | ||
"prepublish": "npm run build && git commit dist -m 'release: update dist/' || true" | ||
}, | ||
@@ -14,0 +14,0 @@ "dependencies": { |
409387
180