Skip to content

Commit

Permalink
add fields for level crossing
Browse files Browse the repository at this point in the history
  • Loading branch information
k-yle committed Nov 13, 2021
1 parent bd37118 commit 7f62142
Show file tree
Hide file tree
Showing 6 changed files with 56 additions and 0 deletions.
16 changes: 16 additions & 0 deletions data/fields/crossing/barrier.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"key": "crossing:barrier",
"type": "combo",
"label": "Barrier Arm",
"strings": {
"options": {
"full": "Full",
"double_half": "Double Half",
"half": "Half",
"no": "no",
"yes": "yes"
}
},
"autoSuggestions": false,
"customValues": false
}
5 changes: 5 additions & 0 deletions data/fields/crossing/bell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"key": "crossing:bell",
"type": "check",
"label": "Bell"
}
5 changes: 5 additions & 0 deletions data/fields/crossing/light.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"key": "crossing:light",
"type": "check",
"label": "Lights"
}
5 changes: 5 additions & 0 deletions data/presets/railway/crossing.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"icon": "temaki-pedestrian",
"fields": [
"crossing/barrier",
"crossing/bell",
"crossing/light"
],
"geometry": [
"vertex"
],
Expand Down
5 changes: 5 additions & 0 deletions data/presets/railway/level_crossing.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"icon": "maki-cross",
"fields": [
"crossing/barrier",
"crossing/bell",
"crossing/light"
],
"geometry": [
"vertex"
],
Expand Down
20 changes: 20 additions & 0 deletions interim/source_strings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -576,9 +576,29 @@ en:
crossing:
# crossing=*
label: Type
crossing/barrier:
# 'crossing:barrier=*'
label: Barrier Arm
options:
# 'crossing:barrier=double_half'
double_half: Double Half
# 'crossing:barrier=full'
full: Full
# 'crossing:barrier=half'
half: Half
# 'crossing:barrier=no'
'no': 'no'
# 'crossing:barrier=yes'
'yes': 'yes'
crossing/bell:
# 'crossing:bell=*'
label: Bell
crossing/island:
# 'crossing:island=*'
label: Refuge Island
crossing/light:
# 'crossing:light=*'
label: Lights
cuisine:
# cuisine=*
label: Cuisines
Expand Down

0 comments on commit 7f62142

Please sign in to comment.