Highlight just the lane or the whole road, not both.
@@ -496,6 +496,9 @@ fn highlight_current_selection(
let color = Color::hex("#DF8C3D");
let map = &app.primary.map;
+ if let Some(l) = l {
+ batch.push(color, app.primary.draw_map.get_l(l).get_outline(map));
+ } else {
let road = map.get_r(r);
batch.push(
color,
@@ -503,9 +506,6 @@ fn highlight_current_selection(
.to_thick_boundary(road.get_width(map), OUTLINE_THICKNESS)
.unwrap(),
);
-
- if let Some(l) = l {
- batch.push(color, app.primary.draw_map.get_l(l).get_outline(map));
}
(l, ctx.upload(batch))
}
