Add altitude-based color coding for map markers in adsb (#3004)

* Add altitude-based color coding for map markers in adsb
This commit is contained in:
Totoo
2026-02-19 20:50:49 +01:00
committed by GitHub
parent 6498f5a1b2
commit 0685fb7a9f
4 changed files with 50 additions and 4 deletions
+2 -2
View File
@@ -265,7 +265,7 @@ void GeoMap::map_read_line_bin(ui::Color* buffer, uint16_t pixels) {
void GeoMap::draw_markers(Painter& painter) {
for (int i = 0; i < markerListLen; ++i) {
draw_marker_item(painter, markerList[i], Color::blue(), Color::blue(), Color::magenta());
draw_marker_item(painter, markerList[i], markerList[i].color, markerList[i].color, Color::black());
}
}
@@ -826,7 +826,7 @@ void GeoMap::update_my_position(float lat, float lon, int32_t altitude) {
my_pos.lat = lat;
my_pos.lon = lon;
my_altitude = altitude;
redraw_map = is_changed;
redraw_map |= is_changed;
set_dirty();
}