Watch
0
0
Fork
You've already forked esp32-c_its-companion
0

FIXUP: Only show "bike", if not vehicle lane with bike usage

This commit is contained in:
Jannik Beyerstedt 2026-09-07 08:15:57 +02:00
commit c29eb92388

View file

@ -355,11 +355,11 @@ where
.into_styled(style)
.draw(&mut self.target)?;
// draw lane type
let lane_type_symbol = if sig.usages.contains(&applogic::v2x::map::UsageType::Bike) {
"B" // TODO: rather do a bike symbol?
} else if sig.usages.contains(&applogic::v2x::map::UsageType::Vehicle) {
// mark bike lanes which are not a vehicle lane, too
let lane_type_symbol = if sig.usages.contains(&applogic::v2x::map::UsageType::Vehicle) {
" "
} else if sig.usages.contains(&applogic::v2x::map::UsageType::Bike) {
"B" // TODO: rather do a bike symbol?
} else {
"?"
};