UI: improve contrast of bridges, fix #2399

This commit is contained in:
Pieter Vander Vennet 2025-04-27 21:54:57 +02:00
parent 32bca03e26
commit 944e139f5b
2 changed files with 100 additions and 4 deletions

View file

@ -2547,7 +2547,7 @@
],
"paint": {
"line-color": "#e0e0e0",
"line-gap-width": [
"line-width": [
"interpolate",
[
"exponential",
@ -2558,8 +2558,10 @@
],
14,
0,
18,
10,
20,
7
16
]
}
},
@ -3149,6 +3151,52 @@
]
}
},
{
"id": "roads_bridges_footway_other",
"type": "line",
"source": "protomaps",
"source-layer": "roads",
"minzoom": 12,
"filter": [
"all",
[
"has",
"is_bridge"
],
[
"in",
"kind",
"other",
"path"
],
[
"==",
"kind_detail",
"footway"
]
],
"paint": {
"line-color": "#d46710",
"line-dasharray": [
2,
1
],
"line-width": [
"interpolate",
[
"exponential",
1.6
],
[
"zoom"
],
14,
0,
20,
7
]
}
},
{
"id": "roads_bridges_other",
"type": "line",

View file

@ -2546,7 +2546,7 @@
],
"paint": {
"line-color": "#e0e0e0",
"line-gap-width": [
"line-width": [
"interpolate",
[
"exponential",
@ -2557,8 +2557,10 @@
],
14,
0,
18,
10,
20,
7
16
]
}
},
@ -3148,6 +3150,52 @@
]
}
},
{
"id": "roads_bridges_footway_other",
"type": "line",
"source": "protomaps",
"source-layer": "roads",
"minzoom": 12,
"filter": [
"all",
[
"has",
"is_bridge"
],
[
"in",
"kind",
"other",
"path"
],
[
"==",
"kind_detail",
"footway"
]
],
"paint": {
"line-color": "#d46710",
"line-dasharray": [
2,
1
],
"line-width": [
"interpolate",
[
"exponential",
1.6
],
[
"zoom"
],
14,
0,
20,
7
]
}
},
{
"id": "roads_bridges_other",
"type": "line",