mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-19 23:14:47 +02:00
Replace tunnel_waterway combo with structure_water radio
(closes #4384) - adds the `layer` field so it works like the structure field on highways - also defaults the tunnel type to `culvert` for waterways - also fixed so that `layer` gets removed if user changes types or clicks delete
This commit is contained in:
+8
-3
@@ -1298,6 +1298,14 @@ en:
|
||||
tunnel: Tunnel
|
||||
# structure field placeholder
|
||||
placeholder: Unknown
|
||||
structure_waterway:
|
||||
# tunnel=*
|
||||
label: Structure
|
||||
options:
|
||||
# tunnel=yes
|
||||
tunnel: Tunnel
|
||||
# structure_waterway field placeholder
|
||||
placeholder: Unknown
|
||||
studio:
|
||||
# studio=*
|
||||
label: Type
|
||||
@@ -1424,9 +1432,6 @@ en:
|
||||
label: Type
|
||||
# tunnel field placeholder
|
||||
placeholder: Default
|
||||
tunnel_waterway:
|
||||
# tunnel=*
|
||||
label: Tunnel
|
||||
vending:
|
||||
# vending=*
|
||||
label: Type of Goods
|
||||
|
||||
@@ -1750,6 +1750,19 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"structure_waterway": {
|
||||
"type": "structureRadio",
|
||||
"keys": [
|
||||
"tunnel"
|
||||
],
|
||||
"label": "Structure",
|
||||
"placeholder": "Unknown",
|
||||
"strings": {
|
||||
"options": {
|
||||
"tunnel": "Tunnel"
|
||||
}
|
||||
}
|
||||
},
|
||||
"structure": {
|
||||
"type": "structureRadio",
|
||||
"keys": [
|
||||
@@ -1929,11 +1942,6 @@
|
||||
"type": "semiCombo",
|
||||
"label": "Trees"
|
||||
},
|
||||
"tunnel_waterway": {
|
||||
"key": "tunnel",
|
||||
"type": "combo",
|
||||
"label": "Tunnel"
|
||||
},
|
||||
"tunnel": {
|
||||
"key": "tunnel",
|
||||
"type": "typeCombo",
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"type": "structureRadio",
|
||||
"keys": [
|
||||
"tunnel"
|
||||
],
|
||||
"label": "Structure",
|
||||
"placeholder": "Unknown",
|
||||
"strings": {
|
||||
"options": {
|
||||
"tunnel": "Tunnel"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
{
|
||||
"key": "tunnel",
|
||||
"type": "combo",
|
||||
"label": "Tunnel"
|
||||
}
|
||||
@@ -15987,7 +15987,7 @@
|
||||
"waterway/ditch": {
|
||||
"icon": "waterway-ditch",
|
||||
"fields": [
|
||||
"tunnel_waterway",
|
||||
"structure_waterway",
|
||||
"intermittent"
|
||||
],
|
||||
"geometry": [
|
||||
@@ -16024,7 +16024,7 @@
|
||||
"waterway/drain": {
|
||||
"icon": "waterway-stream",
|
||||
"fields": [
|
||||
"tunnel_waterway",
|
||||
"structure_waterway",
|
||||
"intermittent"
|
||||
],
|
||||
"geometry": [
|
||||
@@ -16063,7 +16063,7 @@
|
||||
"icon": "waterway-river",
|
||||
"fields": [
|
||||
"name",
|
||||
"tunnel_waterway",
|
||||
"structure_waterway",
|
||||
"width",
|
||||
"intermittent"
|
||||
],
|
||||
@@ -16135,7 +16135,7 @@
|
||||
"icon": "waterway-stream",
|
||||
"fields": [
|
||||
"name",
|
||||
"tunnel_waterway",
|
||||
"structure_waterway",
|
||||
"width",
|
||||
"intermittent"
|
||||
],
|
||||
@@ -16178,7 +16178,7 @@
|
||||
"icon": "waterway-stream",
|
||||
"fields": [
|
||||
"name",
|
||||
"tunnel_waterway",
|
||||
"structure_waterway",
|
||||
"width",
|
||||
"intermittent"
|
||||
],
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"icon": "waterway-ditch",
|
||||
"fields": [
|
||||
"tunnel_waterway",
|
||||
"structure_waterway",
|
||||
"intermittent"
|
||||
],
|
||||
"geometry": [
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"icon": "waterway-stream",
|
||||
"fields": [
|
||||
"tunnel_waterway",
|
||||
"structure_waterway",
|
||||
"intermittent"
|
||||
],
|
||||
"geometry": [
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"icon": "waterway-river",
|
||||
"fields": [
|
||||
"name",
|
||||
"tunnel_waterway",
|
||||
"structure_waterway",
|
||||
"width",
|
||||
"intermittent"
|
||||
],
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"icon": "waterway-stream",
|
||||
"fields": [
|
||||
"name",
|
||||
"tunnel_waterway",
|
||||
"structure_waterway",
|
||||
"width",
|
||||
"intermittent"
|
||||
],
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"icon": "waterway-stream",
|
||||
"fields": [
|
||||
"name",
|
||||
"tunnel_waterway",
|
||||
"structure_waterway",
|
||||
"width",
|
||||
"intermittent"
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user