From 754d07395f8c2140ff13feddb32bf085d9f7e29d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=E2=84=93e=20Hensel?= Date: Wed, 15 Dec 2021 05:11:18 +1300 Subject: [PATCH] add fields for level crossing (#194) --- data/fields/crossing/barrier.json | 16 ++++++++++++++++ data/fields/crossing/bell.json | 5 +++++ data/fields/crossing/light.json | 5 +++++ data/presets/railway/crossing.json | 5 +++++ data/presets/railway/level_crossing.json | 5 +++++ interim/source_strings.yaml | 20 ++++++++++++++++++++ 6 files changed, 56 insertions(+) create mode 100644 data/fields/crossing/barrier.json create mode 100644 data/fields/crossing/bell.json create mode 100644 data/fields/crossing/light.json diff --git a/data/fields/crossing/barrier.json b/data/fields/crossing/barrier.json new file mode 100644 index 00000000..4e029246 --- /dev/null +++ b/data/fields/crossing/barrier.json @@ -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 +} diff --git a/data/fields/crossing/bell.json b/data/fields/crossing/bell.json new file mode 100644 index 00000000..142ac2d2 --- /dev/null +++ b/data/fields/crossing/bell.json @@ -0,0 +1,5 @@ +{ + "key": "crossing:bell", + "type": "check", + "label": "Bell" +} diff --git a/data/fields/crossing/light.json b/data/fields/crossing/light.json new file mode 100644 index 00000000..95520cf7 --- /dev/null +++ b/data/fields/crossing/light.json @@ -0,0 +1,5 @@ +{ + "key": "crossing:light", + "type": "check", + "label": "Lights" +} diff --git a/data/presets/railway/crossing.json b/data/presets/railway/crossing.json index 08ca4a85..6edf2e41 100644 --- a/data/presets/railway/crossing.json +++ b/data/presets/railway/crossing.json @@ -1,5 +1,10 @@ { "icon": "temaki-pedestrian", + "fields": [ + "crossing/barrier", + "crossing/bell", + "crossing/light" + ], "geometry": [ "vertex" ], diff --git a/data/presets/railway/level_crossing.json b/data/presets/railway/level_crossing.json index 5376cbeb..1bfda0cd 100644 --- a/data/presets/railway/level_crossing.json +++ b/data/presets/railway/level_crossing.json @@ -1,5 +1,10 @@ { "icon": "maki-cross", + "fields": [ + "crossing/barrier", + "crossing/bell", + "crossing/light" + ], "geometry": [ "vertex" ], diff --git a/interim/source_strings.yaml b/interim/source_strings.yaml index 7a9c4142..1d474264 100644 --- a/interim/source_strings.yaml +++ b/interim/source_strings.yaml @@ -597,9 +597,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