Fix: fix #1883; display underground railway lines in a subtler rendering

This commit is contained in:
Pieter Vander Vennet 2024-04-11 12:44:40 +02:00
parent 4aeb301ae3
commit b3299cdd73
2 changed files with 107 additions and 1 deletions

View file

@ -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": {

View file

@ -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": {