Skip to content

Commit 0b8c298

Browse files
author
Andy Townsend
committed
Copy bridge logic for service, living_street
and `unclassified` from svwd01 to svwd03.
1 parent 2bd2c15 commit 0b8c298

File tree

2 files changed

+148
-59
lines changed

2 files changed

+148
-59
lines changed

resources/changelog_svwd03.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Changes made to the [SVWD03 web display style](https://github.com/SomeoneElseOSM/SomeoneElse-vector-web-display/blob/main/resources/README_svwd03.md).
22
See also the [changelog](https://github.com/SomeoneElseOSM/SomeoneElse-vector-web-display/blob/main/changelog.md) for the scripts here.
33

4+
## As yet unreleased
5+
Copy bridge logic for `service`, `living_street` and `unclassified` from svwd01 to svwd03.
6+
47
## 30/11/2025
58
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.
69

resources/svwd03_style.json

Lines changed: 145 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -3598,20 +3598,18 @@
35983598
"source": "someoneelse",
35993599
"source-layer": "streets",
36003600
"minzoom": 12,
3601-
"filter": [
3602-
"all",
3603-
[ "in", "kind", "service",
3604-
"road" ],
3605-
[ "==", "bridge", true ]
3606-
],
3601+
"filter": [ "all", [ "in", "kind", "service",
3602+
"road" ],
3603+
[ "==", "bridge", true ] ],
36073604
"layout": { "line-cap": "butt", "line-join": "round", "visibility": "visible" },
36083605
"paint": {
36093606
"line-color": "black",
36103607
"line-width": {
36113608
"base": 2.0,
36123609
"stops": [
3613-
[ 12, 1.0 ],
3614-
[ 20, 40.0 ]
3610+
[ 6, 2.4 ],
3611+
[ 9, 4.8 ],
3612+
[ 20, 120.0 ]
36153613
]
36163614
}
36173615
}
@@ -3638,25 +3636,23 @@
36383636
}
36393637
},
36403638
{
3641-
"id": "highway-unclassified-bridgecasing-10",
3639+
"id": "highway-unclassified-bridgecasing-12",
36423640
"type": "line",
36433641
"source": "someoneelse",
36443642
"source-layer": "streets",
3645-
"minzoom": 10,
3646-
"filter": [
3647-
"all",
3648-
[ "in", "kind", "unclassified",
3649-
"residential" ],
3650-
[ "==", "bridge", true ]
3651-
],
3643+
"minzoom": 12,
3644+
"filter": [ "all", [ "in", "kind", "unclassified",
3645+
"residential" ],
3646+
[ "==", "bridge", true ] ],
36523647
"layout": { "line-cap": "butt", "line-join": "round", "visibility": "visible" },
36533648
"paint": {
36543649
"line-color": "black",
36553650
"line-width": {
36563651
"base": 2.0,
36573652
"stops": [
3658-
[ 10, 2.8 ],
3659-
[ 20, 86.0 ]
3653+
[ 6, 2.4 ],
3654+
[ 9, 4.8 ],
3655+
[ 20, 120.0 ]
36603656
]
36613657
}
36623658
}
@@ -3902,6 +3898,137 @@
39023898
}
39033899
}
39043900
},
3901+
{
3902+
"id": "highway-service-bridgeprefill-12",
3903+
"type": "line",
3904+
"source": "someoneelse",
3905+
"source-layer": "streets",
3906+
"minzoom": 12,
3907+
"filter": [ "all", [ "in", "kind", "service",
3908+
"road" ],
3909+
[ "==", "bridge", true ] ],
3910+
"layout": { "line-cap": "butt", "line-join": "round", "visibility": "visible" },
3911+
"paint": {
3912+
"line-color": "#f2efe9",
3913+
"line-width": {
3914+
"base": 2.0,
3915+
"stops": [
3916+
[ 6, 2.0 ],
3917+
[ 9, 4.0 ],
3918+
[ 20, 100.0 ]
3919+
]
3920+
}
3921+
}
3922+
},
3923+
{
3924+
"id": "highway-living_street-bridgeprefill-12",
3925+
"type": "line",
3926+
"source": "someoneelse",
3927+
"source-layer": "streets",
3928+
"minzoom": 12,
3929+
"filter": [ "all", [ "in", "kind", "living_street" ],
3930+
[ "==", "bridge", true ] ],
3931+
"layout": { "line-cap": "butt", "line-join": "round", "visibility": "visible" },
3932+
"paint": {
3933+
"line-color": "#f2efe9",
3934+
"line-width": {
3935+
"base": 2.0,
3936+
"stops": [
3937+
[ 6, 2.0 ],
3938+
[ 9, 4.0 ],
3939+
[ 20, 100.0 ]
3940+
]
3941+
}
3942+
}
3943+
},
3944+
{
3945+
"id": "highway-unclassified-bridgeprefill-10",
3946+
"type": "line",
3947+
"source": "someoneelse",
3948+
"source-layer": "streets",
3949+
"minzoom": 10,
3950+
"filter": [
3951+
"all",
3952+
[ "in", "kind", "unclassified",
3953+
"residential" ],
3954+
[ "==", "bridge", true ]
3955+
],
3956+
"layout": { "line-cap": "butt", "line-join": "round", "visibility": "visible" },
3957+
"paint": {
3958+
"line-color": "#f2efe9",
3959+
"line-width": {
3960+
"base": 2.0,
3961+
"stops": [
3962+
[ 6, 2.0 ],
3963+
[ 9, 4.0 ],
3964+
[ 20, 100.0 ]
3965+
]
3966+
}
3967+
}
3968+
},
3969+
{
3970+
"id": "highway-service-bridgeinnercasing-12",
3971+
"type": "line",
3972+
"source": "someoneelse",
3973+
"source-layer": "streets",
3974+
"minzoom": 12,
3975+
"filter": [ "all", [ "in", "kind", "service",
3976+
"road" ],
3977+
[ "==", "bridge", true ] ],
3978+
"layout": { "line-cap": "butt", "line-join": "round", "visibility": "visible" },
3979+
"paint": {
3980+
"line-color": "#bbb",
3981+
"line-width": {
3982+
"base": 2.0,
3983+
"stops": [
3984+
[ 12, 1.0 ],
3985+
[ 20, 40.0 ]
3986+
]
3987+
}
3988+
}
3989+
},
3990+
{
3991+
"id": "highway-living_street-bridgeinnercasing-10",
3992+
"type": "line",
3993+
"source": "someoneelse",
3994+
"source-layer": "streets",
3995+
"minzoom": 10,
3996+
"filter": [ "all", [ "in", "kind", "living_street" ],
3997+
[ "==", "bridge", true ] ],
3998+
"layout": { "line-cap": "butt", "line-join": "round", "visibility": "visible" },
3999+
"paint": {
4000+
"line-color": "#bbb",
4001+
"line-width": {
4002+
"base": 2.0,
4003+
"stops": [
4004+
[ 10, 2.8 ],
4005+
[ 20, 86.0 ]
4006+
]
4007+
}
4008+
}
4009+
},
4010+
{
4011+
"id": "highway-unclassified-bridgeinnercasing-10",
4012+
"type": "line",
4013+
"source": "someoneelse",
4014+
"source-layer": "streets",
4015+
"minzoom": 10,
4016+
"filter": [ "all", [ "in", "kind", "unclassified",
4017+
"residential" ],
4018+
[ "==", "bridge", true ] ],
4019+
"layout": { "line-cap": "butt", "line-join": "round", "visibility": "visible" },
4020+
"paint": {
4021+
"line-color": "#bbb",
4022+
"line-width": {
4023+
"base": 2.0,
4024+
"stops": [
4025+
[ 10, 2.8 ],
4026+
[ 12, 3.2 ],
4027+
[ 20, 86.0 ]
4028+
]
4029+
}
4030+
}
4031+
},
39054032
{
39064033
"id": "highway-footwaynarrow-bridgefill-12",
39074034
"type": "line",
@@ -4088,47 +4215,6 @@
40884215
}
40894216
}
40904217
},
4091-
{
4092-
"id": "highway-living_street-bridgeprefill-12",
4093-
"type": "line",
4094-
"source": "someoneelse",
4095-
"source-layer": "streets",
4096-
"minzoom": 12,
4097-
"filter": [ "all", [ "in", "kind", "living_street" ],
4098-
[ "==", "bridge", true ] ],
4099-
"layout": { "line-cap": "butt", "line-join": "round", "visibility": "visible" },
4100-
"paint": {
4101-
"line-color": "#f2efe9",
4102-
"line-width": {
4103-
"base": 2.0,
4104-
"stops": [
4105-
[ 6, 2.0 ],
4106-
[ 9, 4.0 ],
4107-
[ 20, 100.0 ]
4108-
]
4109-
}
4110-
}
4111-
},
4112-
{
4113-
"id": "highway-living_street-bridgeinnercasing-10",
4114-
"type": "line",
4115-
"source": "someoneelse",
4116-
"source-layer": "streets",
4117-
"minzoom": 10,
4118-
"filter": [ "all", [ "in", "kind", "living_street" ],
4119-
[ "==", "bridge", true ] ],
4120-
"layout": { "line-cap": "butt", "line-join": "round", "visibility": "visible" },
4121-
"paint": {
4122-
"line-color": "#bbb",
4123-
"line-width": {
4124-
"base": 2.0,
4125-
"stops": [
4126-
[ 10, 2.8 ],
4127-
[ 20, 86.0 ]
4128-
]
4129-
}
4130-
}
4131-
},
41324218
{
41334219
"id": "highway-living_street-bridgefill-10",
41344220
"type": "line",

0 commit comments

Comments
 (0)