From e9a3df44c5fc70fd2b7940696feaf9d693ddce36 Mon Sep 17 00:00:00 2001 From: Hidde Wieringa Date: Sat, 2 Nov 2024 20:40:42 +0100 Subject: [PATCH] Ensure DC <750V is rendered with proper color (#136) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #134 After, Nürnberg: ![image](https://github.com/user-attachments/assets/9dbb8d74-998a-4b34-b52b-a3659b90d4cb) --- proxy/js/styles.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/js/styles.mjs b/proxy/js/styles.mjs index 4e732f7c..9fca9bd6 100644 --- a/proxy/js/styles.mjs +++ b/proxy/js/styles.mjs @@ -731,7 +731,7 @@ const electrificationColor = (voltageProperty, frequencyProperty) => ['case', ['all', ['==', ['get', frequencyProperty], 0], ['==', ['get', voltageProperty], 1000]], color_1kv_dc, ['all', ['==', ['get', frequencyProperty], 0], ['!=', ['get', voltageProperty], null], ['>', 1000, ['get', voltageProperty]], ['>', ['get', voltageProperty], 750]], color_gt750v_lt1kv_dc, ['all', ['==', ['get', frequencyProperty], 0], ['==', ['get', voltageProperty], 750]], color_750v_dc, - ['all', ['==', ['get', frequencyProperty], 0], ['!=', ['get', voltageProperty], null], ['<', 750, ['get', voltageProperty]]], color_lt750v_dc, + ['all', ['==', ['get', frequencyProperty], 0], ['!=', ['get', voltageProperty], null], ['>', 750, ['get', voltageProperty]]], color_lt750v_dc, ['all', ['!=', ['get', frequencyProperty], 0], ['!=', ['get', voltageProperty], null],