From de1ca5168047ca7375859fda8d571fec24c21741 Mon Sep 17 00:00:00 2001 From: Jordan Gilbert Date: Thu, 19 Dec 2024 10:37:58 -0700 Subject: [PATCH] testing allowing for FCode or fcode --- Symbology/web/Shared/flow_lines.json | 20 ++++++++++++++++++++ Symbology/web/Shared/nhdephemeral.json | 2 +- Symbology/web/Shared/nhdintermittent.json | 2 +- Symbology/web/Shared/nhdperrenial.json | 9 ++++++++- 4 files changed, 30 insertions(+), 3 deletions(-) diff --git a/Symbology/web/Shared/flow_lines.json b/Symbology/web/Shared/flow_lines.json index 866f5592..5275fc83 100644 --- a/Symbology/web/Shared/flow_lines.json +++ b/Symbology/web/Shared/flow_lines.json @@ -28,6 +28,15 @@ "hsl(40, 100%, 50%)", [55800], "hsl(351, 55%, 58%)", + ["get", "fcode"], + [46006], + "hsl(213, 100%, 33%)", + [33600], + "hsl(180, 75%, 79%)", + [33400], + "hsl(40, 100%, 50%)", + [55800], + "hsl(351, 55%, 58%)", "hsla(0, 0%, 0%, 0)" ] } @@ -46,6 +55,11 @@ "hsl(80, 100%, 50%)", [46007], "hsl(40, 100%, 45%)", + ["get", "fcode"], + [46003], + "hsl(80, 100%, 50%)", + [46007], + "hsl(40, 100%, 45%)", "hsla(0, 0%, 0%, 0)" ], "line-dasharray": [1, 2] @@ -64,6 +78,9 @@ ["get", "FCode"], [42800, 42801, 42802, 42807, 42813], "#000000", + ["get", "fcode"], + [42800, 42801, 42802, 42807, 42813], + "#000000", "hsla(0, 0%, 0%, 0)" ], "line-width": 2 @@ -81,6 +98,9 @@ ["get", "FCode"], [42800, 42801, 42802, 42807, 42813], "#000000", + ["get", "fcode"], + [42800, 42801, 42802, 42807, 42813], + "#000000", "hsla(0, 0%, 0%, 0)" ], "line-width": 2, diff --git a/Symbology/web/Shared/nhdephemeral.json b/Symbology/web/Shared/nhdephemeral.json index a1839a5f..3426048d 100644 --- a/Symbology/web/Shared/nhdephemeral.json +++ b/Symbology/web/Shared/nhdephemeral.json @@ -9,7 +9,7 @@ "type": "line", "source": "composite", "source-layer": "intermittent-126k30", - "filter": ["match", ["get", "FCode"], [46007], true, false], + "filter": ["match", ["get", "FCode"], [46007], ["get", "fcode"], [46007], true, false], "layout": {}, "paint": { "line-dasharray": [3, 1, 1, 1, 1, 1], diff --git a/Symbology/web/Shared/nhdintermittent.json b/Symbology/web/Shared/nhdintermittent.json index b8ea9f14..b6204e6a 100644 --- a/Symbology/web/Shared/nhdintermittent.json +++ b/Symbology/web/Shared/nhdintermittent.json @@ -9,7 +9,7 @@ "type": "line", "source": "composite", "source-layer": "intermittent-126k30", - "filter": ["match", ["get", "FCode"], [46003], true, false], + "filter": ["match", ["get", "FCode"], [46003], ["get", "fcode"], [46003], true, false], "layout": {}, "paint": { "line-color": "hsl(194, 100%, 73%)", diff --git a/Symbology/web/Shared/nhdperrenial.json b/Symbology/web/Shared/nhdperrenial.json index b59c70d1..15372623 100644 --- a/Symbology/web/Shared/nhdperrenial.json +++ b/Symbology/web/Shared/nhdperrenial.json @@ -22,9 +22,16 @@ "hsl(213, 100%, 33%)", [55800], "hsl(220, 100%, 23%)", + ["get", "fcode"], + [46006], + "hsl(213, 100%, 33%)", + [33400], + "hsl(213, 100%, 33%)", + [55800], + "hsl(220, 100%, 23%)", "hsla(0, 0%, 0%, 0)" ], - "line-width": ["match", ["get", "FCode"], [33400], 0.5, 1] + "line-width": ["match", ["get", "FCode"], [33400], 0.5, 1, "match", ["get", "fcode"], [33400], 0.5, 1, 0] } } ]