From be3954f8cc16b3150f9eed668a04b1aa9038a76f Mon Sep 17 00:00:00 2001 From: archpdx Date: Mon, 16 May 2022 08:00:56 -0700 Subject: [PATCH] Add flashing_lights field (#449) * Add flashing_lights field * Move `flashing_lights` to `moreFields` --- data/fields/flashing_lights.json | 29 +++++++++++++++++++++ data/presets/highway/crossing/marked.json | 3 +++ data/presets/highway/crossing/unmarked.json | 3 +++ data/presets/highway/footway/marked.json | 3 +++ data/presets/highway/footway/unmarked.json | 3 +++ 5 files changed, 41 insertions(+) create mode 100644 data/fields/flashing_lights.json diff --git a/data/fields/flashing_lights.json b/data/fields/flashing_lights.json new file mode 100644 index 00000000..23d36522 --- /dev/null +++ b/data/fields/flashing_lights.json @@ -0,0 +1,29 @@ +{ + "key": "flashing_lights", + "type": "combo", + "label": "Flashing Lights", + "strings": { + "options": { + "button": { + "title": "Button activated", + "description": "Lights activated by pressing a button" + }, + "always": { + "title": "Always flashing", + "description": "Lights are always flashing" + }, + "sensor": { + "title": "Sensor activated", + "description": "Lights activated by a sensor" + }, + "button;sensor": { + "title": "Button and sensor activated", + "description": "Lights activated by a sensor or by pressing a button" + }, + "no": "No", + "yes": "Yes" + } + }, + "autoSuggestions": false, + "customValues": false +} diff --git a/data/presets/highway/crossing/marked.json b/data/presets/highway/crossing/marked.json index c0892803..ebb308dc 100644 --- a/data/presets/highway/crossing/marked.json +++ b/data/presets/highway/crossing/marked.json @@ -6,6 +6,9 @@ "crossing/island", "crossing_raised" ], + "moreFields": [ + "flashing_lights" + ], "geometry": [ "vertex" ], diff --git a/data/presets/highway/crossing/unmarked.json b/data/presets/highway/crossing/unmarked.json index 94a9483f..034f9fca 100644 --- a/data/presets/highway/crossing/unmarked.json +++ b/data/presets/highway/crossing/unmarked.json @@ -6,6 +6,9 @@ "crossing/island", "crossing_raised" ], + "moreFields": [ + "flashing_lights" + ], "geometry": [ "vertex" ], diff --git a/data/presets/highway/footway/marked.json b/data/presets/highway/footway/marked.json index 937a22a6..daf6e9bb 100644 --- a/data/presets/highway/footway/marked.json +++ b/data/presets/highway/footway/marked.json @@ -8,6 +8,9 @@ "crossing/island", "crossing_raised" ], + "moreFields": [ + "flashing_lights" + ], "geometry": [ "line" ], diff --git a/data/presets/highway/footway/unmarked.json b/data/presets/highway/footway/unmarked.json index 2180e996..dc373b26 100644 --- a/data/presets/highway/footway/unmarked.json +++ b/data/presets/highway/footway/unmarked.json @@ -8,6 +8,9 @@ "crossing/island", "crossing_raised" ], + "moreFields": [ + "flashing_lights" + ], "geometry": [ "line" ],