From 2e43a24c334d87a9b88b91994ada45817f0f3fc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Fri, 12 Apr 2019 14:08:21 +0200 Subject: [PATCH] railway-electrification: fix display of non-electrified / unknown --- railway-electrification.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/railway-electrification.json b/railway-electrification.json index 6b6d49d..f67f218 100644 --- a/railway-electrification.json +++ b/railway-electrification.json @@ -24,8 +24,10 @@ " {% else %}", " {% set color = colorInterpolate([ 'blue', '#af0000' ], (tags.voltage - 1000) / 24000) %}", " {% endif %}", + "{% elseif tags.electrified and tags.electrified == 'no' %}", + " {% set color = '#000000' %}", "{% else %}", - " {% set color = 'black' %}", + " {% set color = '#7f7f7f' %}", "{% endif %}", "", "{% if tags.service == 'yard' or tags.service == 'siding' or tags.service == 'spur' or tags.service == 'crossover' %}", @@ -72,7 +74,7 @@ "fill": null, "dashArray": [ "{% if not tags.electrified is defined %}", - "{% elseif tags.frequency == 0 %}", + "{% elseif not tags.frequency is defined or tags.frequency == 0 %}", "{% else %}", "5,2", "{% endif %}"