Skip to content

Commit f191a42

Browse files
author
Andy Townsend
committed
copy tram / road fill draw order from svwd01 to svwd03
to stop on-road trams from "disappearing" under bridges.
1 parent 9688778 commit f191a42

File tree

2 files changed

+126
-125
lines changed

2 files changed

+126
-125
lines changed

resources/changelog_svwd03.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +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
4+
## 01/12/2025
55
Copy bridge logic for `service`, `living_street`, `unclassified`, and `tertiary` to `motorway` from svwd01 to svwd03.
6+
copy tram / road fill draw order from svwd01 to svwd03 to stop on-road trams from "disappearing" under bridges.
67

78
## 30/11/2025
89
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: 124 additions & 124 deletions
Original file line numberDiff line numberDiff line change
@@ -4063,6 +4063,70 @@
40634063
}
40644064
}
40654065
},
4066+
{
4067+
"id": "railway-rail-bridgecasing-12",
4068+
"type": "line",
4069+
"source": "someoneelse",
4070+
"source-layer": "streets",
4071+
"minzoom": 12,
4072+
"filter": [
4073+
"all",
4074+
[ "in", "kind", "rail",
4075+
"funicular",
4076+
"light_rail",
4077+
"subway",
4078+
"tram",
4079+
"bus_guideway",
4080+
"busway" ],
4081+
[ "==", "bridge", true ]
4082+
],
4083+
"layout": { "line-cap": "butt", "line-join": "round", "visibility": "visible" },
4084+
"paint": {
4085+
"line-color": "black",
4086+
"line-width": {
4087+
"stops": [
4088+
[ 13, 5.4 ],
4089+
[ 14, 7.2 ],
4090+
[ 16, 10.8 ],
4091+
[ 17, 21.6 ],
4092+
[ 18, 43.2 ],
4093+
[ 20, 72.0 ]
4094+
]
4095+
}
4096+
}
4097+
},
4098+
{
4099+
"id": "railway-rail-bridgeprefill-12",
4100+
"type": "line",
4101+
"source": "someoneelse",
4102+
"source-layer": "streets",
4103+
"minzoom": 12,
4104+
"filter": [
4105+
"all",
4106+
[ "in", "kind", "rail",
4107+
"funicular",
4108+
"light_rail",
4109+
"subway",
4110+
"tram",
4111+
"bus_guideway",
4112+
"busway" ],
4113+
[ "==", "bridge", true ]
4114+
],
4115+
"layout": { "line-cap": "butt", "line-join": "round", "visibility": "visible" },
4116+
"paint": {
4117+
"line-color": "#f2efe9",
4118+
"line-width": {
4119+
"stops": [
4120+
[ 13, 3.6 ],
4121+
[ 14, 4.8 ],
4122+
[ 16, 7.2 ],
4123+
[ 17, 14.4 ],
4124+
[ 18, 28.8 ],
4125+
[ 20, 48.0 ]
4126+
]
4127+
}
4128+
}
4129+
},
40664130
{
40674131
"id": "highway-service-bridgeinnercasing-12",
40684132
"type": "line",
@@ -4440,70 +4504,6 @@
44404504
}
44414505
}
44424506
},
4443-
{
4444-
"id": "railway-rail-bridgecasing-12",
4445-
"type": "line",
4446-
"source": "someoneelse",
4447-
"source-layer": "streets",
4448-
"minzoom": 12,
4449-
"filter": [
4450-
"all",
4451-
[ "in", "kind", "rail",
4452-
"funicular",
4453-
"light_rail",
4454-
"subway",
4455-
"tram",
4456-
"bus_guideway",
4457-
"busway" ],
4458-
[ "==", "bridge", true ]
4459-
],
4460-
"layout": { "line-cap": "butt", "line-join": "round", "visibility": "visible" },
4461-
"paint": {
4462-
"line-color": "black",
4463-
"line-width": {
4464-
"stops": [
4465-
[ 13, 5.4 ],
4466-
[ 14, 7.2 ],
4467-
[ 16, 10.8 ],
4468-
[ 17, 21.6 ],
4469-
[ 18, 43.2 ],
4470-
[ 20, 72.0 ]
4471-
]
4472-
}
4473-
}
4474-
},
4475-
{
4476-
"id": "railway-rail-bridgeprefill-12",
4477-
"type": "line",
4478-
"source": "someoneelse",
4479-
"source-layer": "streets",
4480-
"minzoom": 12,
4481-
"filter": [
4482-
"all",
4483-
[ "in", "kind", "rail",
4484-
"funicular",
4485-
"light_rail",
4486-
"subway",
4487-
"tram",
4488-
"bus_guideway",
4489-
"busway" ],
4490-
[ "==", "bridge", true ]
4491-
],
4492-
"layout": { "line-cap": "butt", "line-join": "round", "visibility": "visible" },
4493-
"paint": {
4494-
"line-color": "#f2efe9",
4495-
"line-width": {
4496-
"stops": [
4497-
[ 13, 3.6 ],
4498-
[ 14, 4.8 ],
4499-
[ 16, 7.2 ],
4500-
[ 17, 14.4 ],
4501-
[ 18, 28.8 ],
4502-
[ 20, 48.0 ]
4503-
]
4504-
}
4505-
}
4506-
},
45074507
{
45084508
"id": "railway-rail-bridgedarkfill-12",
45094509
"type": "line",
@@ -4555,65 +4555,6 @@
45554555
}
45564556
}
45574557
},
4558-
{
4559-
"id": "railway-tram-bridgebackgroundfill-12",
4560-
"type": "line",
4561-
"source": "someoneelse",
4562-
"source-layer": "streets",
4563-
"minzoom": 12,
4564-
"filter": [
4565-
"all",
4566-
[ "in", "kind", "light_rail",
4567-
"funicular",
4568-
"subway",
4569-
"tram" ],
4570-
[ "==", "bridge", true ]
4571-
],
4572-
"layout": { "line-cap": "round", "line-join": "round", "visibility": "visible" },
4573-
"paint": {
4574-
"line-color": "#999999",
4575-
"line-width": {
4576-
"stops": [
4577-
[ 13, 0.2 ],
4578-
[ 14, 0.6 ],
4579-
[ 16, 1.2 ],
4580-
[ 17, 2.4 ],
4581-
[ 18, 4.8 ],
4582-
[ 20, 8.0 ]
4583-
]
4584-
}
4585-
}
4586-
},
4587-
{
4588-
"id": "railway-tram-bridgeforegroundfill-12",
4589-
"type": "line",
4590-
"source": "someoneelse",
4591-
"source-layer": "streets",
4592-
"minzoom": 12,
4593-
"filter": [
4594-
"all",
4595-
[ "in", "kind", "light_rail",
4596-
"funicular",
4597-
"subway",
4598-
"tram" ],
4599-
[ "==", "bridge", true ]
4600-
],
4601-
"layout": { "line-cap": "round", "line-join": "round", "visibility": "visible" },
4602-
"paint": {
4603-
"line-color": "#666",
4604-
"line-dasharray": [ 0.05, 6.0 ],
4605-
"line-width": {
4606-
"stops": [
4607-
[ 13, 0.2 ],
4608-
[ 14, 0.6 ],
4609-
[ 16, 1.2 ],
4610-
[ 17, 2.4 ],
4611-
[ 18, 4.8 ],
4612-
[ 20, 8.0 ]
4613-
]
4614-
}
4615-
}
4616-
},
46174558
{
46184559
"id": "railway-narrow_gauge-bridgelightfill-13",
46194560
"type": "line",
@@ -5183,7 +5124,7 @@
51835124
"source-layer": "streets",
51845125
"minzoom": 5,
51855126
"filter": [ "all", [ "in", "kind", "motorway",
5186-
"motorway_link" ],
5127+
"motorway_link" ],
51875128
[ "==", "bridge", true ] ],
51885129
"layout": { "line-cap": "round", "line-join": "round", "visibility": "visible" },
51895130
"paint": {
@@ -5197,6 +5138,65 @@
51975138
}
51985139
}
51995140
},
5141+
{
5142+
"id": "railway-tram-bridgebackgroundfill-12",
5143+
"type": "line",
5144+
"source": "someoneelse",
5145+
"source-layer": "streets",
5146+
"minzoom": 12,
5147+
"filter": [
5148+
"all",
5149+
[ "in", "kind", "light_rail",
5150+
"funicular",
5151+
"subway",
5152+
"tram" ],
5153+
[ "==", "bridge", true ]
5154+
],
5155+
"layout": { "line-cap": "round", "line-join": "round", "visibility": "visible" },
5156+
"paint": {
5157+
"line-color": "#999999",
5158+
"line-width": {
5159+
"stops": [
5160+
[ 13, 0.2 ],
5161+
[ 14, 0.6 ],
5162+
[ 16, 1.2 ],
5163+
[ 17, 2.4 ],
5164+
[ 18, 4.8 ],
5165+
[ 20, 8.0 ]
5166+
]
5167+
}
5168+
}
5169+
},
5170+
{
5171+
"id": "railway-tram-bridgeforegroundfill-12",
5172+
"type": "line",
5173+
"source": "someoneelse",
5174+
"source-layer": "streets",
5175+
"minzoom": 12,
5176+
"filter": [
5177+
"all",
5178+
[ "in", "kind", "light_rail",
5179+
"funicular",
5180+
"subway",
5181+
"tram" ],
5182+
[ "==", "bridge", true ]
5183+
],
5184+
"layout": { "line-cap": "round", "line-join": "round", "visibility": "visible" },
5185+
"paint": {
5186+
"line-color": "#666",
5187+
"line-dasharray": [ 0.05, 6.0 ],
5188+
"line-width": {
5189+
"stops": [
5190+
[ 13, 0.2 ],
5191+
[ 14, 0.6 ],
5192+
[ 16, 1.2 ],
5193+
[ 17, 2.4 ],
5194+
[ 18, 4.8 ],
5195+
[ 20, 8.0 ]
5196+
]
5197+
}
5198+
}
5199+
},
52005200
{
52015201
"id": "highway-access_no-wide-12",
52025202
"type": "line",

0 commit comments

Comments
 (0)