Skip to content

Commit 51a7acb

Browse files
author
Andy Townsend
committed
Also secondary bridge logic.
1 parent 2a681ee commit 51a7acb

File tree

2 files changed

+56
-18
lines changed

2 files changed

+56
-18
lines changed

resources/changelog_svwd03.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
See also the [changelog](https://github.com/SomeoneElseOSM/SomeoneElse-vector-web-display/blob/main/changelog.md) for the scripts here.
33

44
## As yet unreleased
5-
Copy bridge logic for `service`, `living_street` and `unclassified` from svwd01 to svwd03.
5+
Copy bridge logic for `service`, `living_street`, `unclassified`, `tertiary` and `secondary` from svwd01 to svwd03.
66

77
## 30/11/2025
88
Merge `highway=living_street` processing from [parent style](https://github.com/SomeoneElseOSM/SomeoneElse-vector-web-display/blob/main/resources/README_svwd01.md). This added a casing (the previous version did not work if _not_ over residential) and also improved the bridge display for living streets.

resources/svwd03_style.json

Lines changed: 55 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3703,26 +3703,23 @@
37033703
}
37043704
},
37053705
{
3706-
"id": "highway-secondary-bridgecasing-9",
3706+
"id": "highway-secondary-bridgecasing-12",
37073707
"type": "line",
37083708
"source": "someoneelse",
37093709
"source-layer": "streets",
3710-
"minzoom": 8,
3711-
"filter": [
3712-
"all",
3713-
[ "in", "kind", "secondary",
3714-
"secondary_link" ],
3715-
[ "==", "bridge", true ]
3716-
],
3710+
"minzoom": 12,
3711+
"filter": [ "all", [ "in", "kind", "secondary",
3712+
" secondary_link" ],
3713+
[ "==", "bridge", true ] ],
37173714
"layout": { "line-cap": "butt", "line-join": "round", "visibility": "visible" },
37183715
"paint": {
37193716
"line-color": "black",
37203717
"line-width": {
37213718
"base": 2.0,
37223719
"stops": [
3723-
[ 8, 1.4 ],
3724-
[ 9, 2.8 ],
3725-
[ 20, 86.0 ]
3720+
[ 6, 2.4 ],
3721+
[ 9, 4.8 ],
3722+
[ 20, 120.0 ]
37263723
]
37273724
}
37283725
}
@@ -3986,6 +3983,28 @@
39863983
}
39873984
}
39883985
},
3986+
{
3987+
"id": "highway-secondary-bridgeprefill-12",
3988+
"type": "line",
3989+
"source": "someoneelse",
3990+
"source-layer": "streets",
3991+
"minzoom": 12,
3992+
"filter": [ "all", [ "in", "kind", "secondary",
3993+
"secondary_link" ],
3994+
[ "==", "bridge", true ] ],
3995+
"layout": { "line-cap": "butt", "line-join": "round", "visibility": "visible" },
3996+
"paint": {
3997+
"line-color": "#f2efe9",
3998+
"line-width": {
3999+
"base": 2.0,
4000+
"stops": [
4001+
[ 6, 2.0 ],
4002+
[ 9, 4.0 ],
4003+
[ 20, 100.0 ]
4004+
]
4005+
}
4006+
}
4007+
},
39894008
{
39904009
"id": "highway-service-bridgeinnercasing-12",
39914010
"type": "line",
@@ -4070,6 +4089,28 @@
40704089
}
40714090
}
40724091
},
4092+
{
4093+
"id": "highway-secondary-bridgeinnercasing-9",
4094+
"type": "line",
4095+
"source": "someoneelse",
4096+
"source-layer": "streets",
4097+
"minzoom": 9,
4098+
"filter": [ "all", [ "in", "kind", "secondary",
4099+
"secondary_link" ],
4100+
[ "==", "bridge", true ] ],
4101+
"layout": { "line-cap": "butt", "line-join": "round", "visibility": "visible" },
4102+
"paint": {
4103+
"line-color": "#cca16a",
4104+
"line-width": {
4105+
"base": 2.0,
4106+
"stops": [
4107+
[ 8, 1.4 ],
4108+
[ 9, 2.8 ],
4109+
[ 20, 86.0 ]
4110+
]
4111+
}
4112+
}
4113+
},
40734114
{
40744115
"id": "highway-footwaynarrow-bridgefill-12",
40754116
"type": "line",
@@ -4952,12 +4993,9 @@
49524993
"source": "someoneelse",
49534994
"source-layer": "streets",
49544995
"minzoom": 8,
4955-
"filter": [
4956-
"all",
4957-
[ "in", "kind", "secondary",
4958-
"secondary_link" ],
4959-
[ "==", "bridge", true ]
4960-
],
4996+
"filter": [ "all", [ "in", "kind", "secondary",
4997+
"secondary_link" ],
4998+
[ "==", "bridge", true ] ],
49614999
"layout": { "line-cap": "round", "line-join": "round", "visibility": "visible" },
49625000
"paint": {
49635001
"line-color": "#f9d6aa",

0 commit comments

Comments
 (0)