forked from MapComplete/MapComplete
Themes(width): add note if street are low on cars, hide 'unknown'-layer by default, add 'separate' as recognized parking type
This commit is contained in:
parent
3c5a528307
commit
9a2b5d0cf7
1 changed files with 21 additions and 2 deletions
|
@ -26,8 +26,8 @@
|
|||
"_car_width:=2 /* The width that a single car needs */",
|
||||
"_cyclistWidth:=1.5 /* The width a single cyclist needs to be safely overtaken */",
|
||||
"_pedestrianWidth:=0.75 /* The width a pedestrian needs if sidewalks are missing */",
|
||||
"_has_left_parking=['lane','yes', 'parallel'].indexOf(feat.properties['parking:left'] ?? feat.properties['parking:both']) >= 0",
|
||||
"_has_right_parking=['lane','yes','parallel'].indexOf(feat.properties['parking:right'] ?? feat.properties['parking:both']) >= 0",
|
||||
"_has_left_parking=['lane','yes', 'parallel','separate'].indexOf(feat.properties['parking:left'] ?? feat.properties['parking:both']) >= 0",
|
||||
"_has_right_parking=['lane','yes','parallel','separate'].indexOf(feat.properties['parking:right'] ?? feat.properties['parking:both']) >= 0",
|
||||
"_has_other_parking= ['parking:left:orientation','parking:right:orientation','parking:both:orientation'].some(key => ['perpendicular','diagonal'].indexOf(feat.properties[key]) >= 0)",
|
||||
"_parallel_parking_count=get(feat)('_has_right_parking') + get(feat)('_has_left_parking') /* in javascript logic: true + true == 2*/",
|
||||
"_width:needed:parking=get(feat)('_parallel_parking_count') * get(feat)('_car_width')",
|
||||
|
@ -184,6 +184,24 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "autoluw",
|
||||
"mappings": [
|
||||
{
|
||||
"if": {
|
||||
"or": [
|
||||
"access=destination",
|
||||
"highway=pedestrian",
|
||||
"motor_vehicle=no",
|
||||
"motor_vehicle=destination"
|
||||
]
|
||||
},
|
||||
"then": {
|
||||
"nl": "Deze straat is autoluw (voetgangerszone of lokaal autoverkeer)"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"questions",
|
||||
"{nearby_images(closed,readonly)}"
|
||||
],
|
||||
|
@ -243,6 +261,7 @@
|
|||
},
|
||||
{
|
||||
"id": "street_no_width",
|
||||
"shownByDefault": false,
|
||||
"description": "Typical city streets with width",
|
||||
"name": {
|
||||
"nl": "Straten zonder breedte"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue