Import pedestrian plaza areas, just for rendering. #458

Not regenerating everything yet.
This commit is contained in:
Dustin Carlino 2021-01-16 15:16:14 -08:00
parent 322fb81a9d
commit ec8c37ab05
4 changed files with 8 additions and 0 deletions

View File

@ -574,5 +574,9 @@ fn get_area_type(tags: &Tags) -> Option<AreaType> {
return Some(AreaType::Island);
}
if tags.is(osm::HIGHWAY, "pedestrian") {
return Some(AreaType::PedestrianPlaza);
}
None
}

View File

@ -119,6 +119,7 @@ pub struct ColorScheme {
pub grass: Fill,
pub water: Fill,
pub median_strip: Fill,
pub pedestrian_plaza: Fill,
// Unzoomed dynamic elements
pub unzoomed_car: Color,
@ -245,6 +246,7 @@ impl ColorScheme {
grass: hex("#94C84A").into(),
water: Color::rgb(164, 200, 234).into(),
median_strip: Color::CYAN.into(),
pedestrian_plaza: Color::hex("#DDDDE8").into(),
// Unzoomed dynamic elements
unzoomed_car: hex("#A32015"),

View File

@ -41,6 +41,7 @@ impl DrawArea {
AreaType::Water => cs.water.clone(),
AreaType::Island => cs.map_background.clone(),
AreaType::MedianStrip => cs.median_strip.clone(),
AreaType::PedestrianPlaza => cs.pedestrian_plaza.clone(),
}
}
}

View File

@ -28,6 +28,7 @@ pub enum AreaType {
Water,
Island,
MedianStrip,
PedestrianPlaza,
}
/// Areas are just used for drawing.