er, dont need parking hints on buildings and areas. also adjust traffic

signal box color; needed updating after changing colors a while ago
This commit is contained in:
Dustin Carlino 2019-10-17 12:44:00 -07:00
parent 4eadcc29f5
commit 0a97482a16
2 changed files with 13 additions and 12 deletions

View File

@ -87,6 +87,8 @@ pub fn extract_osm(
let pts = map.gps_bounds.forcibly_convert(&gps_pts);
let mut tags = tags_to_map(&way.tags);
tags.insert(osm::OSM_WAY_ID.to_string(), way.id.to_string());
if is_road(&tags) {
// If there's no parking data in OSM already, then assume no parking and mark that it's
// inferred.
if !tags.contains_key(osm::PARKING_LEFT)
@ -99,7 +101,6 @@ pub fn extract_osm(
tags.insert(osm::INFERRED_PARKING.to_string(), "true".to_string());
}
if is_road(&tags) {
roads.push(RawRoad {
orig_id: OriginalRoad {
osm_way_id: way.id,

View File

@ -63,7 +63,7 @@ pub fn draw_signal_phase(
let percent = time_left.unwrap() / phase.duration;
// TODO Tune colors.
batch.push(
ctx.cs.get_def("traffic signal box", Color::grey(0.2)),
ctx.cs.get_def("traffic signal box", Color::grey(0.5)),
Polygon::rectangle_topleft(top_left, box_width, box_height),
);
batch.push(