Fix major and medium road bridges rendering

This commit is contained in:
Pieter Vander Vennet 2024-03-25 13:27:17 +01:00
parent efb02d3f54
commit 24fd638619
2 changed files with 121 additions and 18 deletions

View file

@ -63,7 +63,6 @@
"fill-color": "#f0ead9"
}
},
{
"id": "landuse_park",
"type": "fill",
@ -289,7 +288,6 @@
]
}
},
{
"id": "natural_scrub",
"type": "fill",
@ -346,7 +344,6 @@
"fill-color": "#e2e0d7"
}
},
{
"id": "landuse_park_line",
"type": "line",
@ -383,8 +380,6 @@
]
}
},
{
"id": "landuse_aerodrome",
"type": "fill",
@ -1147,7 +1142,6 @@
"fill-opacity": 0.5
}
},
{
"id": "transit_pier",
"type": "line",
@ -1878,14 +1872,19 @@
]
],
"paint": {
"line-color":[
"line-color": [
"interpolate",
["linear"],
["zoom"],
[
"linear"
],
[
"zoom"
],
8,
"#f9d9b5",
18,
"#f9b9a5"],
"#f9b9a5"
],
"line-width": [
"interpolate",
[
@ -2084,7 +2083,6 @@
]
}
},
{
"id": "boundaries_country",
"type": "line",
@ -2499,6 +2497,47 @@
]
}
},
{
"id": "roads_bridges_medium_line_around",
"type": "line",
"source": "protomaps",
"source-layer": "roads",
"minzoom": 12,
"filter": [
"all",
[
">",
"pmap:level",
0
],
[
"==",
"pmap:kind",
"medium_road"
]
],
"paint": {
"line-color": "#7c6644",
"line-width": [
"interpolate",
[
"exponential",
1.6
],
[
"zoom"
],
7,
0,
12,
3.2,
15,
6,
18,
17
]
}
},
{
"id": "roads_bridges_medium",
"type": "line",
@ -2519,7 +2558,7 @@
]
],
"paint": {
"line-color": "#f0eded",
"line-color": "#fcd6a4",
"line-width": [
"interpolate",
[
@ -2540,6 +2579,58 @@
]
}
},
{
"id": "roads_bridges_major_line_around",
"type": "line",
"source": "protomaps",
"source-layer": "roads",
"filter": [
"all",
[
">",
"pmap:level",
0
],
[
"==",
"pmap:kind",
"major_road"
]
],
"paint": {
"line-color": [
"interpolate",
[
"linear"
],
[
"zoom"
],
8,
"#a98985",
18,
"#a97975"
],
"line-width": [
"interpolate",
[
"exponential",
1.6
],
[
"zoom"
],
6,
0,
12,
3.6,
15,
6,
18,
18
]
}
},
{
"id": "roads_bridges_major",
"type": "line",
@ -2560,7 +2651,19 @@
]
],
"paint": {
"line-color": "#f5f5f5",
"line-color": [
"interpolate",
[
"linear"
],
[
"zoom"
],
8,
"#f9d9b5",
18,
"#f9b9a5"
],
"line-width": [
"interpolate",
[

View file

@ -12,7 +12,7 @@
lon: 3.1929, lat: 51.2190
}),
zoom: UIEventSource.asFloat(QueryParameters.GetQueryParameter("z", 13+"")),
rasterLayer: new UIEventSource(AvailableRasterLayers.globalLayers.at(-1))
rasterLayer: new UIEventSource(AvailableRasterLayers.globalLayers.at(5))
})
</script>