mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-25 23:43:25 +03:00
Draw polylines as arrows in the KML viewer; it's pretty much always useful to see the direction of the raw data
This commit is contained in:
parent
500f14869f
commit
59597708ec
@ -5,7 +5,7 @@ use std::collections::{BTreeMap, HashMap, HashSet};
|
|||||||
use aabb_quadtree::QuadTree;
|
use aabb_quadtree::QuadTree;
|
||||||
|
|
||||||
use abstutil::{prettyprint_usize, Timer};
|
use abstutil::{prettyprint_usize, Timer};
|
||||||
use geom::{Circle, Distance, PolyLine, Polygon, Pt2D, Ring};
|
use geom::{ArrowCap, Circle, Distance, PolyLine, Polygon, Pt2D, Ring};
|
||||||
use kml::{ExtraShape, ExtraShapes};
|
use kml::{ExtraShape, ExtraShapes};
|
||||||
use map_gui::colors::ColorScheme;
|
use map_gui::colors::ColorScheme;
|
||||||
use map_gui::tools::{FilePicker, PopupMsg};
|
use map_gui::tools::{FilePicker, PopupMsg};
|
||||||
@ -314,7 +314,7 @@ fn make_object(
|
|||||||
} else {
|
} else {
|
||||||
let backup = pts[0];
|
let backup = pts[0];
|
||||||
match PolyLine::new(pts) {
|
match PolyLine::new(pts) {
|
||||||
Ok(pl) => pl.make_polygons(THICKNESS),
|
Ok(pl) => pl.make_arrow(THICKNESS, ArrowCap::Triangle),
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
println!(
|
println!(
|
||||||
"Object with attribs {:?} has messed up geometry: {}",
|
"Object with attribs {:?} has messed up geometry: {}",
|
||||||
|
Loading…
Reference in New Issue
Block a user