diff --git a/data/fields/cycle_barrier.json b/data/fields/cycle_barrier.json new file mode 100644 index 000000000..d2ef92309 --- /dev/null +++ b/data/fields/cycle_barrier.json @@ -0,0 +1,14 @@ +{ + "key": "cycle_barrier", + "type": "combo", + "label": "Barrier Type", + "strings": { + "options": { + "single": "Single", + "double": "Double", + "triple": "Triple", + "diagonal": "Diagonal", + "tilted": "Tilted" + } + } +} diff --git a/data/fields/cycle_barrier/installation.json b/data/fields/cycle_barrier/installation.json new file mode 100644 index 000000000..cb58d42d5 --- /dev/null +++ b/data/fields/cycle_barrier/installation.json @@ -0,0 +1,13 @@ +{ + "key": "cycle_barrier:installation", + "type": "combo", + "label": "Installation", + "customValues": false, + "strings": { + "options": { + "fixed": "Fixed", + "openable": "Openable", + "removable": "Removable" + } + } +} diff --git a/data/fields/maxwidth/physical.json b/data/fields/maxwidth/physical.json new file mode 100644 index 000000000..7d0b8f7c8 --- /dev/null +++ b/data/fields/maxwidth/physical.json @@ -0,0 +1,6 @@ +{ + "key": "maxwidth:physical", + "type": "roadheight", + "label": "Physical Width Limit", + "snake_case": false +} diff --git a/data/fields/opening.json b/data/fields/opening.json new file mode 100644 index 000000000..45fa649fa --- /dev/null +++ b/data/fields/opening.json @@ -0,0 +1,10 @@ +{ + "key": "opening", + "type": "number", + "minValue": 0, + "label": "Passage Width (m)", + "prerequisiteTag": { + "key": "cycle_barrier", + "valueNot": "single" + } +} diff --git a/data/fields/overlap.json b/data/fields/overlap.json new file mode 100644 index 000000000..8645bf76d --- /dev/null +++ b/data/fields/overlap.json @@ -0,0 +1,10 @@ +{ + "key": "overlap", + "type": "number", + "minValue": 0, + "label": "Overlap Distance (m)", + "prerequisiteTag": { + "key": "cycle_barrier", + "valueNot": "single" + } +} diff --git a/data/fields/spacing.json b/data/fields/spacing.json new file mode 100644 index 000000000..85769dfd2 --- /dev/null +++ b/data/fields/spacing.json @@ -0,0 +1,10 @@ +{ + "key": "spacing", + "type": "number", + "minValue": 0, + "label": "Distance Between Grids (m)", + "prerequisiteTag": { + "key": "cycle_barrier", + "valueNot": "single" + } +} diff --git a/data/presets/barrier/cycle_barrier.json b/data/presets/barrier/cycle_barrier.json index f05935d74..6a706ccb7 100644 --- a/data/presets/barrier/cycle_barrier.json +++ b/data/presets/barrier/cycle_barrier.json @@ -1,8 +1,16 @@ { "icon": "temaki-cycle_barrier", "fields": [ + "cycle_barrier", + "cycle_barrier/installation", "access" ], + "moreFields": [ + "spacing", + "opening", + "overlap", + "maxwidth/physical" + ], "geometry": [ "vertex" ],