Skip to content

Commit e9f520a

Browse files
trs998tordans
andauthored
Add roof shape and roof height fields to building presets (#1552)
Co-authored-by: Tobias <t@tobiasjordans.de>
1 parent 4ab2240 commit e9f520a

File tree

5 files changed

+37
-2
lines changed

5 files changed

+37
-2
lines changed

data/fields/roof/height.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"key": "roof:height",
3+
"minValue": 0,
4+
"type": "number",
5+
"label": "Roof Height (Meters)"
6+
}

data/fields/roof/shape.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"key": "roof:shape",
3+
"type": "combo",
4+
"label": "Roof Shape",
5+
"strings": {
6+
"options": {
7+
"flat": "Flat",
8+
"gabled": "Gabled",
9+
"skillion": "Skillion",
10+
"hipped": "Hipped",
11+
"half-hipped": "Half-Hipped",
12+
"mansard": "Mansard",
13+
"gambrel": "Gambrel",
14+
"pyramidal": "Pyramidal",
15+
"cone": "Cone",
16+
"dome": "Dome",
17+
"onion": "Onion",
18+
"round": "Round"
19+
}
20+
},
21+
"autoSuggestions": true,
22+
"customValues": false
23+
}

data/presets/building.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
"not/name",
2020
"operator",
2121
"roof/colour",
22+
"roof/shape",
23+
"roof/height",
2224
"smoking",
2325
"wheelchair"
2426
],

data/presets/building/roof.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
"gnis/feature_id-US",
1818
"not/name",
1919
"operator",
20-
"roof/colour"
20+
"roof/colour",
21+
"roof/shape",
22+
"roof/height"
2123
],
2224
"geometry": [
2325
"area"

data/presets/building_part.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
"height",
77
"building/material",
88
"building/colour",
9-
"roof/colour"
9+
"roof/colour",
10+
"roof/height",
11+
"roof/shape"
1012
],
1113
"moreFields": [
1214
"layer"

0 commit comments

Comments
 (0)