From b3299cdd733152820e30c18463e551059654d3fb Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Thu, 11 Apr 2024 12:44:40 +0200 Subject: [PATCH] Fix: fix #1883; display underground railway lines in a subtler rendering --- public/assets/sunny-unlabeled.json | 55 +++++++++++++++++++++++++++++- public/assets/sunny.json | 53 ++++++++++++++++++++++++++++ 2 files changed, 107 insertions(+), 1 deletion(-) diff --git a/public/assets/sunny-unlabeled.json b/public/assets/sunny-unlabeled.json index ae99e9eed..0f1052722 100644 --- a/public/assets/sunny-unlabeled.json +++ b/public/assets/sunny-unlabeled.json @@ -1233,6 +1233,49 @@ ] } }, + { + "id": "transit_railway_tunnel", + "type": "line", + "source": "protomaps", + "source-layer": "transit", + "filter": [ + "all", + [ + "==", + "pmap:kind", + "rail" + ], + [ + "<", + "pmap:level", + 0 + ] + ], + "paint": { + "line-dasharray": [ + 0.3, + 0.75 + ], + "line-opacity": 0.5, + "line-color": "#333333", + "line-width": [ + "interpolate", + [ + "exponential", + 1.6 + ], + [ + "zoom" + ], + 3, + 0, + 6, + 0.15, + 18, + 9 + ] + } + }, { "id": "buildings", "type": "fill", @@ -2141,6 +2184,11 @@ "==", "pmap:kind", "rail" + ], + [ + ">=", + "pmap:level", + 0 ] ], "paint": { @@ -2176,6 +2224,11 @@ "==", "pmap:kind", "rail" + ], + [ + ">=", + "pmap:level", + 0 ] ], "paint": { @@ -2898,4 +2951,4 @@ "maxzoom": 8 } ] -} +} \ No newline at end of file diff --git a/public/assets/sunny.json b/public/assets/sunny.json index 7f6d957dc..dcf07f7b9 100644 --- a/public/assets/sunny.json +++ b/public/assets/sunny.json @@ -1232,6 +1232,49 @@ ] } }, + { + "id": "transit_railway_tunnel", + "type": "line", + "source": "protomaps", + "source-layer": "transit", + "filter": [ + "all", + [ + "==", + "pmap:kind", + "rail" + ], + [ + "<", + "pmap:level", + 0 + ] + ], + "paint": { + "line-dasharray": [ + 0.3, + 0.75 + ], + "line-opacity": 0.5, + "line-color": "#333333", + "line-width": [ + "interpolate", + [ + "exponential", + 1.6 + ], + [ + "zoom" + ], + 3, + 0, + 6, + 0.15, + 18, + 9 + ] + } + }, { "id": "buildings", "type": "fill", @@ -2140,6 +2183,11 @@ "==", "pmap:kind", "rail" + ], + [ + ">=", + "pmap:level", + 0 ] ], "paint": { @@ -2175,6 +2223,11 @@ "==", "pmap:kind", "rail" + ], + [ + ">=", + "pmap:level", + 0 ] ], "paint": {