mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-11-25 11:44:25 +03:00
interpret sidewalks=separate as =both for now, so the downtown map is usable again
This commit is contained in:
parent
a776960e25
commit
0fb358b38d
@ -127,7 +127,10 @@ pub fn get_lane_types(osm_tags: &BTreeMap<String, String>) -> (Vec<LaneType>, Ve
|
||||
back_side.push(LaneType::Parking);
|
||||
}
|
||||
|
||||
if osm_tags.get(osm::SIDEWALK) == Some(&"both".to_string()) {
|
||||
// TODO Need to snap separate sidewalks to ways. Until then, just do this.
|
||||
if osm_tags.get(osm::SIDEWALK) == Some(&"both".to_string())
|
||||
|| osm_tags.get(osm::SIDEWALK) == Some(&"separate".to_string())
|
||||
{
|
||||
fwd_side.push(LaneType::Sidewalk);
|
||||
back_side.push(LaneType::Sidewalk);
|
||||
} else if osm_tags.get(osm::SIDEWALK) == Some(&"right".to_string()) {
|
||||
|
Loading…
Reference in New Issue
Block a user