Skip to content

Commit b30ab4c

Browse files
committed
Increase Heatmap opacity tiers
1 parent 2b4b5d7 commit b30ab4c

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

src/pages/HeatmapPage.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,19 +121,23 @@ function resolveHeatmapStyle(
121121
return { baseOpacity: 1, topOpacity: 1, weight: 2.5 };
122122
}
123123

124+
if (trackCount <= 1) {
125+
return { baseOpacity: 0.72, topOpacity: 0.92, weight: 5 };
126+
}
127+
124128
if (trackCount <= 20) {
125-
return { baseOpacity: 0.2, topOpacity: 0.32, weight: 5 };
129+
return { baseOpacity: 0.4, topOpacity: 0.58, weight: 5 };
126130
}
127131

128132
if (trackCount <= 80) {
129-
return { baseOpacity: 0.13, topOpacity: 0.2, weight: 4 };
133+
return { baseOpacity: 0.3, topOpacity: 0.45, weight: 4 };
130134
}
131135

132136
if (trackCount <= 250) {
133-
return { baseOpacity: 0.08, topOpacity: 0.12, weight: 3 };
137+
return { baseOpacity: 0.2, topOpacity: 0.32, weight: 3 };
134138
}
135139

136-
return { baseOpacity: 0.045, topOpacity: 0.085, weight: 2.5 };
140+
return { baseOpacity: 0.12, topOpacity: 0.22, weight: 2.5 };
137141
}
138142

139143
function toHeatmapFeatureCollection(tracks: TrackPoint[][]): FeatureCollection<LineString> {

0 commit comments

Comments
 (0)