From d64ad9b643711fc8cfcb382e7dac17252db25c13 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Thu, 11 Sep 2025 02:11:28 +0200 Subject: [PATCH] Themes(pipeline): improve rendering, add pressure and operator questions --- assets/layers/pipeline/pipeline.json | 56 +++++++++++++++++++++++++++- assets/layers/unit/unit.json | 44 ++++++++++++++++++++++ 2 files changed, 98 insertions(+), 2 deletions(-) diff --git a/assets/layers/pipeline/pipeline.json b/assets/layers/pipeline/pipeline.json index 3ae581601..72b672331 100644 --- a/assets/layers/pipeline/pipeline.json +++ b/assets/layers/pipeline/pipeline.json @@ -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 diff --git a/assets/layers/unit/unit.json b/assets/layers/unit/unit.json index 124601d43..5f8abf1f3 100644 --- a/assets/layers/unit/unit.json +++ b/assets/layers/unit/unit.json @@ -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 + } + ] } ] }