forked from MapComplete/MapComplete
Themes(pipeline): improve rendering, add pressure and operator questions
This commit is contained in:
parent
c6ccb0bc66
commit
d64ad9b643
2 changed files with 98 additions and 2 deletions
|
|
@ -33,7 +33,13 @@
|
|||
],
|
||||
"lineRendering": [
|
||||
{
|
||||
"width": 4,
|
||||
"width": 8,
|
||||
"color": {
|
||||
"render": "white"
|
||||
}
|
||||
},
|
||||
{
|
||||
"width": 6,
|
||||
"color": {
|
||||
"render": "black",
|
||||
"mappings": [
|
||||
|
|
@ -43,6 +49,20 @@
|
|||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"width": 6,
|
||||
"color": {
|
||||
"render": "#00000000",
|
||||
"mappings": [
|
||||
{
|
||||
"if": "location=underground",
|
||||
"then": "#ffffff44"
|
||||
}
|
||||
]
|
||||
},
|
||||
"dashArray": "0.25 2",
|
||||
"lineCap": "butt"
|
||||
}
|
||||
],
|
||||
"tagRenderings": [
|
||||
|
|
@ -145,7 +165,39 @@
|
|||
"nl": "Deze pijpleiding transporteert regenwater."
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"filter": true
|
||||
},
|
||||
{
|
||||
"id": "pressure",
|
||||
"question": {
|
||||
"en": "What is the pressure in this pipeline?"
|
||||
},
|
||||
"render": {
|
||||
"en": "This pipeline operates at {canonical(pressure)}"
|
||||
},
|
||||
"freeform": {
|
||||
"key": "pressure",
|
||||
"type": "pfloat",
|
||||
"unit": "pressure",
|
||||
"range": {
|
||||
"warnBelow": 1,
|
||||
"warnAbove": 500,
|
||||
"max": 1000
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "operator",
|
||||
"question": {
|
||||
"en": "Who maintains this pipeline?"
|
||||
},
|
||||
"render": {
|
||||
"en": "Maintained by {operator}"
|
||||
},
|
||||
"freeform": {
|
||||
"key": "operator"
|
||||
}
|
||||
}
|
||||
],
|
||||
"allowMove": false
|
||||
|
|
|
|||
|
|
@ -561,6 +561,50 @@
|
|||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"quantity": "pressure",
|
||||
"applicableUnits": [
|
||||
{
|
||||
"canonicalDenomination": "bar",
|
||||
"addSpace": true,
|
||||
"human": {
|
||||
"en": "{quantity} bar"
|
||||
}
|
||||
},
|
||||
{
|
||||
"canonicalDenomination": "Pa",
|
||||
"addSpace": true,
|
||||
"human": {
|
||||
"en": "{quantity} Pa"
|
||||
},
|
||||
"factorToCanonical": 0.00001
|
||||
},
|
||||
{
|
||||
"canonicalDenomination": "KPa",
|
||||
"addSpace": true,
|
||||
"human": {
|
||||
"en": "{quantity} KPa"
|
||||
},
|
||||
"factorToCanonical": 0.01
|
||||
},
|
||||
{
|
||||
"canonicalDenomination": "MPa",
|
||||
"addSpace": true,
|
||||
"human": {
|
||||
"en": "{quantity} MPa"
|
||||
},
|
||||
"factorToCanonical": 10
|
||||
},
|
||||
{
|
||||
"canonicalDenomination": "psi",
|
||||
"addSpace": true,
|
||||
"human": {
|
||||
"en": "{quantity} psi"
|
||||
},
|
||||
"factorToCanonical": 0.06894757
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue