Add Underground Levels field to building presets (close #6628)

This commit is contained in:
Quincy Morgan
2019-07-09 09:44:16 -04:00
parent 7ae5993ea0
commit c66cc3f143
7 changed files with 20 additions and 1 deletions
+5
View File
@@ -301,6 +301,11 @@ en:
building:
# building=*
label: Building
building/levels/underground:
# 'building:levels:underground=*'
label: Underground Levels
# building/levels/underground field placeholder
placeholder: '2, 4, 6...'
building/levels_building:
# 'building:levels=*'
label: Building Levels
+1
View File
@@ -49,6 +49,7 @@
"building_area": {"key": "building", "type": "combo", "default": "yes", "geometry": "area", "label": "Building"},
"building": {"key": "building", "type": "combo", "label": "Building"},
"building/levels_building": {"key": "building:levels", "type": "number", "minValue": 0, "label": "Building Levels", "placeholder": "2, 4, 6...", "prerequisiteTag": {"key": "building", "valueNot": "no"}},
"building/levels/underground": {"key": "building:levels:underground", "type": "number", "minValue": 0, "label": "Underground Levels", "placeholder": "2, 4, 6..."},
"building/material": {"key": "building:material", "type": "combo", "label": "Material"},
"bunker_type": {"key": "bunker_type", "type": "combo", "label": "Type"},
"cables": {"key": "cables", "type": "number", "minValue": 1, "label": "Cables", "placeholder": "1, 2, 3..."},
@@ -0,0 +1,7 @@
{
"key": "building:levels:underground",
"type": "number",
"minValue": 0,
"label": "Underground Levels",
"placeholder": "2, 4, 6..."
}
+1 -1
View File
@@ -298,7 +298,7 @@
"bridge/support": {"icon": "fas-archway", "fields": ["bridge/support"], "moreFields": ["material", "seamark/type"], "geometry": ["point", "vertex", "area"], "tags": {"bridge:support": "*"}, "name": "Bridge Support"},
"bridge/support/pier": {"icon": "fas-archway", "fields": ["bridge/support"], "moreFields": ["material", "seamark/type"], "geometry": ["point", "vertex", "area"], "tags": {"bridge:support": "pier"}, "name": "Bridge Pier"},
"building_part": {"icon": "maki-building", "fields": ["levels", "height", "building/material", "roof/colour"], "moreFields": ["layer"], "geometry": ["area"], "tags": {"building:part": "*"}, "matchScore": 0.5, "terms": ["roof", "simple 3D buildings"], "name": "Building Part"},
"building": {"icon": "maki-home", "fields": ["name", "building", "levels", "height", "address"], "moreFields": ["architect", "building/material", "layer", "operator", "roof/colour", "smoking", "wheelchair"], "geometry": ["area"], "tags": {"building": "*"}, "matchScore": 0.6, "terms": [], "name": "Building"},
"building": {"icon": "maki-home", "fields": ["name", "building", "levels", "height", "address"], "moreFields": ["architect", "building/levels/underground", "building/material", "layer", "operator", "roof/colour", "smoking", "wheelchair"], "geometry": ["area"], "tags": {"building": "*"}, "matchScore": 0.6, "terms": [], "name": "Building"},
"building/bunker": {"geometry": ["area"], "tags": {"building": "bunker"}, "matchScore": 0.5, "name": "Bunker", "searchable": false},
"building/entrance": {"icon": "maki-entrance-alt1", "fields": [], "moreFields": [], "geometry": ["vertex"], "tags": {"building": "entrance"}, "name": "Entrance/Exit", "searchable": false},
"building/train_station": {"icon": "maki-building", "geometry": ["point", "vertex", "area"], "tags": {"building": "train_station"}, "matchScore": 0.5, "name": "Train Station Building", "searchable": false},
+1
View File
@@ -9,6 +9,7 @@
],
"moreFields": [
"architect",
"building/levels/underground",
"building/material",
"layer",
"operator",
+1
View File
@@ -1260,6 +1260,7 @@
{"key": "brewery", "description": "🄵 Draft Beers"},
{"key": "bridge", "description": "🄵 Type, 🄵 Structure"},
{"key": "building:levels", "description": "🄵 Building Levels, 🄵 Levels"},
{"key": "building:levels:underground", "description": "🄵 Underground Levels"},
{"key": "building:material", "description": "🄵 Material"},
{"key": "bunker_type", "description": "🄵 Type"},
{"key": "cables", "description": "🄵 Cables"},
+4
View File
@@ -2669,6 +2669,10 @@
"label": "Building Levels",
"placeholder": "2, 4, 6..."
},
"building/levels/underground": {
"label": "Underground Levels",
"placeholder": "2, 4, 6..."
},
"building/material": {
"label": "Material"
},