We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd23990 commit a543150Copy full SHA for a543150
1 file changed
src/pathDetails/elevationWidget/colors.ts
@@ -1,3 +1,5 @@
1
+import { ApiImpl } from '@/api/Api'
2
+
3
export const SURFACE_COLORS: Record<string, string> = {
4
// Paved (greens)
5
asphalt: '#2E7D32',
@@ -134,7 +136,7 @@ export function getSpeedThresholds(profile: string): number[] {
134
136
profile.includes('scooter') ||
135
137
profile.includes('bus') ||
138
profile.includes('motorcycle')
- const isFootLike = profile.includes('hike') || profile.includes('foot')
139
+ const isFootLike = ApiImpl.isFootLike(profile)
140
141
if (isMotorVehicle) return [30, 50, 80]
142
if (isFootLike) return [3, 4, 5]
0 commit comments