Skip to content

Commit

Permalink
Add gantry presets (#649)
Browse files Browse the repository at this point in the history
* Add preset for `man_made=gantry`

* Add presets for `power=portal` and `crane:type=*`

Also added terms to Gantry preset and changed label from "Road Sign Structure" to "Gantry"

* Apply suggestions from code review

Co-authored-by: Martin Raifer <martin@raifer.tech>

* Add strucutre_power field

Also moved design to moreFields

* Add structure_power field to power=tower preset

Co-authored-by: Martin Raifer <martin@raifer.tech>
  • Loading branch information
arch0345 and tyrasd committed Nov 23, 2022
1 parent a1fa338 commit 5e3f07f
Show file tree
Hide file tree
Showing 6 changed files with 113 additions and 1 deletion.
13 changes: 13 additions & 0 deletions data/fields/structure_power.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"type": "combo",
"label": "Structure",
"strings": {
"options": {
"lattice": "Lattice",
"solid": "Solid",
"tubular": "Tubular"
}
},
"autoSuggestions": false,
"customValues": false
}
21 changes: 21 additions & 0 deletions data/presets/man_made/crane/gantry_crane.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"icon": "temaki-crane",
"geometry": [
"point",
"vertex",
"area"
],
"tags": {
"man_made": "crane",
"crane:type": "gantry_crane"
},
"reference": {
"key": "crane:type",
"value": "gantry_crane"
},
"terms": [
"overhead crane",
"bridge crane"
],
"name": "Gantry Crane"
}
20 changes: 20 additions & 0 deletions data/presets/man_made/crane/portal_crane.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"icon": "temaki-crane",
"geometry": [
"point",
"vertex",
"area"
],
"tags": {
"man_made": "crane",
"crane:type": "portal_crane"
},
"reference": {
"key": "crane:type",
"value": "portal_crane"
},
"terms": [
"level-luffing crane"
],
"name": "Portal Crane"
}
28 changes: 28 additions & 0 deletions data/presets/man_made/gantry.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"icon": "temaki-toll_gantry",
"fields": [
"layer"
],
"moreFields": [
"material",
"maxheight",
"operator",
"ref"
],
"geometry": [
"line"
],
"tags": {
"man_made": "gantry"
},
"terms": [
"highway gantry",
"mast arm",
"road sign holder",
"road sign structure",
"sign assembly",
"sign holder",
"sign structure"
],
"name": "Gantry"
}
29 changes: 29 additions & 0 deletions data/presets/power/portal.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"icon": "temaki-power",
"fields": [
"ref",
"operator",
"structure_power",
"material"
],
"moreFields": [
"colour",
"design",
"height",
"line_management",
"manufacturer"
],
"geometry": [
"vertex",
"line"
],
"terms": [
"anchor gantry",
"gantry tower",
"h-frame tower"
],
"tags": {
"power": "portal"
},
"name": "Anchor Portal"
}
3 changes: 2 additions & 1 deletion data/presets/power/tower.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"design",
"height",
"material",
"line_attachment"
"line_attachment",
"structure_power"
],
"moreFields": [
"line_management",
Expand Down

0 comments on commit 5e3f07f

Please sign in to comment.