Skip to content

Commit

Permalink
Add unsearchable preset and field for disused:railway (re: #7119)
Browse files Browse the repository at this point in the history
  • Loading branch information
quincylvania committed Dec 16, 2019
1 parent 9b8439f commit da6fac2
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 0 deletions.
6 changes: 6 additions & 0 deletions data/presets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,9 @@ en:
distance:
# distance=*
label: Distance
disused/railway:
# 'disused:railway=*'
label: Type
dock:
# dock=*
label: Type
Expand Down Expand Up @@ -4568,6 +4571,9 @@ en:
demolished/building:
# 'demolished:building=*'
name: Recently Demolished Building
disused/railway:
# 'disused:railway=*'
name: Disused Railway Feature
embankment:
# embankment=yes
name: Embankment
Expand Down
1 change: 1 addition & 0 deletions data/presets/fields.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@
"dispensing": {"key": "dispensing", "type": "check", "label": "Dispenses Prescriptions", "default": "yes"},
"display": {"key": "display", "type": "combo", "label": "Display", "options": ["analog", "digital", "sundial", "unorthodox"]},
"distance": {"key": "distance", "type": "text", "label": "Distance"},
"disused/railway": {"key": "disused:railway", "type": "typeCombo", "label": "Type"},
"dock": {"key": "dock", "type": "combo", "label": "Type"},
"dog": {"key": "dog", "type": "combo", "label": "Dogs", "strings": {"options": {"yes": "Allowed", "leashed": "Leashed Only", "no": "Not Allowed"}}, "terms": ["animals", "pets"]},
"door_type": {"key": "door", "type": "typeCombo", "label": "Type"},
Expand Down
5 changes: 5 additions & 0 deletions data/presets/fields/disused/railway.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"key": "disused:railway",
"type": "typeCombo",
"label": "Type"
}
1 change: 1 addition & 0 deletions data/presets/presets.json
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,7 @@
"craft/winery": {"icon": "maki-alcohol-shop", "moreFields": ["{craft}", "min_age"], "geometry": ["point", "area"], "tags": {"craft": "winery"}, "name": "Winery"},
"cycleway/asl": {"icon": "maki-bicycle", "fields": ["ref", "direction_vertex", "width"], "geometry": ["vertex"], "tags": {"cycleway": "asl"}, "terms": ["advanced stop box", "asl", "bicycle box", "bike box", "bikebox", "cycle box", "cycle stop marking"], "name": "Advanced Stop Line"},
"demolished/building": {"fields": ["name", "address"], "geometry": ["area"], "tags": {"demolished:building": "*"}, "name": "Recently Demolished Building", "searchable": false},
"disused/railway": {"fields": ["disused/railway"], "geometry": ["point", "vertex", "line", "area"], "tags": {"disused:railway": "*"}, "matchScore": 0.05, "searchable": false, "name": "Disused Railway Feature"},
"emergency/designated": {"fields": ["emergency_combo"], "geometry": ["line"], "tags": {"emergency": "designated"}, "name": "Emergency Access Designated", "searchable": false, "matchScore": 0.01},
"emergency/destination": {"fields": ["emergency_combo"], "geometry": ["line"], "tags": {"emergency": "destination"}, "name": "Emergency Access Destination", "searchable": false, "matchScore": 0.01},
"emergency/no": {"fields": ["emergency_combo"], "geometry": ["line"], "tags": {"emergency": "no"}, "name": "Emergency Access No", "searchable": false, "matchScore": 0.01},
Expand Down
17 changes: 17 additions & 0 deletions data/presets/presets/disused/_railway.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"fields": [
"disused/railway"
],
"geometry": [
"point",
"vertex",
"line",
"area"
],
"tags": {
"disused:railway": "*"
},
"matchScore": 0.05,
"searchable": false,
"name": "Disused Railway Feature"
}
1 change: 1 addition & 0 deletions data/taginfo.json
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,7 @@
{"key": "craft", "value": "winery", "description": "🄿 Winery", "object_types": ["node", "area"], "icon_url": "https://cdn.jsdelivr.net/gh/mapbox/maki/icons/alcohol-shop-15.svg"},
{"key": "cycleway", "value": "asl", "description": "🄿 Advanced Stop Line", "object_types": ["node"], "icon_url": "https://cdn.jsdelivr.net/gh/mapbox/maki/icons/bicycle-15.svg"},
{"key": "demolished:building", "description": "🄿 Recently Demolished Building (unsearchable)", "object_types": ["area"]},
{"key": "disused:railway", "description": "🄿 Disused Railway Feature (unsearchable), 🄵 Type", "object_types": ["node", "way", "area"]},
{"key": "emergency", "value": "designated", "description": "🄿 Emergency Access Designated (unsearchable)", "object_types": ["way"]},
{"key": "emergency", "value": "destination", "description": "🄿 Emergency Access Destination (unsearchable)", "object_types": ["way"]},
{"key": "emergency", "value": "no", "description": "🄿 Emergency Access No (unsearchable)", "object_types": ["way"]},
Expand Down
6 changes: 6 additions & 0 deletions dist/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -3154,6 +3154,9 @@
"distance": {
"label": "Distance"
},
"disused/railway": {
"label": "Type"
},
"dock": {
"label": "Type"
},
Expand Down Expand Up @@ -6490,6 +6493,9 @@
"demolished/building": {
"name": "Recently Demolished Building"
},
"disused/railway": {
"name": "Disused Railway Feature"
},
"emergency/designated": {
"name": "Emergency Access Designated"
},
Expand Down

0 comments on commit da6fac2

Please sign in to comment.