Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 8 additions & 14 deletions lib/app/map/_lib/managers/temperature.dart
Original file line number Diff line number Diff line change
Expand Up @@ -169,20 +169,18 @@ class TemperatureMapLayerManager extends MapLayerManager {
Expressions.interpolate,
['linear'],
[Expressions.get, 'temperature'],
-20,
'#4d4e51',
-10,
'#0000FF',
'#4d4e51',
0,
'#6495ED',
'#0000ff',
10,
'#95d07e',
'#75c16f',
20,
'#f6e78b',
30,
'#FF4500',
'#ff4500',
40,
'#8B0000',
'#7e2899',
],
circleRadius: kCircleIconSize,
circleOpacity: 0.75,
Expand Down Expand Up @@ -477,18 +475,14 @@ class TemperatureMapLayerSheet extends StatelessWidget {
items: [
ColorLegendItem(
color: const Color(0xff4d4e51),
value: useFahrenheit ? -20.asFahrenheit : -20,
),
ColorLegendItem(
color: const Color(0xff0000ff),
value: useFahrenheit ? -10.asFahrenheit : -10,
),
ColorLegendItem(
color: const Color(0xff6495ED),
color: const Color(0xff0000ff),
value: useFahrenheit ? 0.asFahrenheit : 0,
),
ColorLegendItem(
color: const Color(0xff95d07e),
color: const Color(0xff75c16f),
value: useFahrenheit ? 10.asFahrenheit : 10,
),
ColorLegendItem(
Expand All @@ -500,7 +494,7 @@ class TemperatureMapLayerSheet extends StatelessWidget {
value: useFahrenheit ? 30.asFahrenheit : 30,
),
ColorLegendItem(
color: const Color(0xff8B0000),
color: const Color(0xff7e2899),
value: useFahrenheit ? 40.asFahrenheit : 40,
),
],
Expand Down
Loading