stop drawing routes in all trip viz mode. doesnt add anything
@@ -177,7 +177,6 @@ impl TripsVisualizer {
let trip = &self.trips[*idx];
let percent = (time - trip.depart_at) / trip.trip_time;
- if true {
let pl = trip.route.as_ref().unwrap();
let color = match trip.mode {
Mode::Drive => Color::RED,
@@ -196,24 +195,6 @@ impl TripsVisualizer {
)
.to_polygon(),
);
-
- // TODO Ideally, slice based on the route remaining. Also, it's darn hard to see
- // this zoomed out.
- batch.push(color, pl.make_polygons(LANE_THICKNESS));
- } else {
- // Draw the start and end, gradually fading the color.
- let from = trip.from.polygon(&ui.primary.map);
- let to = trip.to.polygon(&ui.primary.map);
-
- batch.push(
- Color::RED.alpha(1.0 - (percent as f32)),
- Circle::new(from.center(), Distance::meters(100.0)).to_polygon(),
- );
- batch.push(
- Color::BLUE.alpha(percent as f32),
- Circle::new(to.center(), Distance::meters(100.0)).to_polygon(),
- );
- }
}
batch.draw(g);
