Skip to content

Commit

Permalink
hide "street_cabinet" field; add presets for special cabinets
Browse files Browse the repository at this point in the history
after #777, unfortunately, there were two fields to define the sub-type of street cabinets: utility for the "common" ones (e.g. telecom, power, etc.) and the "legacy" street_cabinet field for the rest. This PR adds dedicated presets for the legacy cases where the "street_cabinet" tag is still to be used to solve this UI issue.
  • Loading branch information
tyrasd committed Feb 13, 2023
1 parent 99a79e4 commit ec2a8dd
Show file tree
Hide file tree
Showing 6 changed files with 128 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/presets/man_made/street_cabinet.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
"fields": [
"ref",
"operator",
"street_cabinet",
"utility_semi",
"height",
"colour"
],
"moreFields": [
"model"
"model",
"street_cabinet"
],
"terms": [
"cable tv",
Expand Down
27 changes: 27 additions & 0 deletions data/presets/man_made/street_cabinet/postal_service.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"icon": "fas-door-closed",
"geometry": [
"point",
"area"
],
"fields": [
"{man_made/street_cabinet}"
],
"moreFields": [
"{man_made/street_cabinet}"
],
"terms": [
"letter storage",
"post delivery",
"postal services"
],
"tags": {
"man_made": "street_cabinet",
"street_cabinet": "postal_service"
},
"reference": {
"key": "street_cabinet",
"value": "postal_service"
},
"name": "Postal Relay Box"
}
26 changes: 26 additions & 0 deletions data/presets/man_made/street_cabinet/traffic_control.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"icon": "fas-door-closed",
"geometry": [
"point",
"area"
],
"fields": [
"{man_made/street_cabinet}"
],
"moreFields": [
"{man_made/street_cabinet}"
],
"terms": [
"traffic control automation",
"traffic light"
],
"tags": {
"man_made": "street_cabinet",
"street_cabinet": "traffic_control"
},
"reference": {
"key": "man_made",
"value": "street_cabinet"
},
"name": "Traffic Controll System Cabinet"
}
26 changes: 26 additions & 0 deletions data/presets/man_made/street_cabinet/traffic_monitoring.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"icon": "fas-door-closed",
"geometry": [
"point",
"area"
],
"fields": [
"{man_made/street_cabinet}"
],
"moreFields": [
"{man_made/street_cabinet}"
],
"terms": [
"traffic monitoring",
"vehicle counting"
],
"tags": {
"man_made": "street_cabinet",
"street_cabinet": "traffic_monitoring"
},
"reference": {
"key": "man_made",
"value": "street_cabinet"
},
"name": "Traffic Monitoring Cabinet"
}
25 changes: 25 additions & 0 deletions data/presets/man_made/street_cabinet/transport_management.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"icon": "fas-door-closed",
"geometry": [
"point",
"area"
],
"fields": [
"{man_made/street_cabinet}"
],
"moreFields": [
"{man_made/street_cabinet}"
],
"terms": [
"public transport automation"
],
"tags": {
"man_made": "street_cabinet",
"street_cabinet": "transport_management"
},
"reference": {
"key": "man_made",
"value": "street_cabinet"
},
"name": "Transport Management Cabinet"
}
22 changes: 22 additions & 0 deletions data/presets/man_made/street_cabinet/waste.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"icon": "maki-recycling",
"geometry": [
"point",
"area"
],
"fields": [
"{man_made/street_cabinet}"
],
"moreFields": [
"{man_made/street_cabinet}"
],
"tags": {
"man_made": "street_cabinet",
"street_cabinet": "waste"
},
"reference": {
"key": "man_made",
"value": "street_cabinet"
},
"name": "Private Waste Collection Cabinet"
}

0 comments on commit ec2a8dd

Please sign in to comment.