Daniel Schep cd77b07e46
improve class=path styling (#1450)
This PR addresses that by:

* rendering oneway arrows on more than `subclass=cycleway`
* less opacity for path/footway casing
* adding the thin black casing to bridges
* adding `subclass=steps` & `subclass=bridleway` rendering
* render `bicycle=designated` as `subclass=cycleway` and `horse=designated` as `subclass=bridleway` (bike taking priority)
* improved tunnel rendering with double casing & adding main line
* made casing min zoom consistent across subclasses

All of these changes were made to mimic OSM Carto.
2023-01-06 10:08:03 +01:00

406 lines
7.9 KiB
JSON

{
"layers": [
{
"id": "ferry_label",
"type": "symbol",
"source": "openmaptiles",
"source-layer": "transportation_name",
"minzoom": 14,
"layout": {
"text-font": [
"Noto Sans Regular"
],
"text-size": 10,
"text-field": "{name}",
"text-anchor": "center",
"text-offset": [
0,
0
],
"symbol-placement": "line"
},
"paint": {
"text-color": "#6666ff",
"text-halo-blur": 1,
"text-halo-color": "rgba(255, 255, 255, 0.34)",
"text-halo-width": 1
},
"metadata": {},
"filter": [
"all",
[
"==",
"subclass",
"ferry"
]
],
"order": 184
},
{
"id": "road_label",
"type": "symbol",
"source": "openmaptiles",
"source-layer": "transportation_name",
"minzoom": 14,
"layout": {
"text-font": [
"Noto Sans Regular"
],
"text-size": {
"base": 1,
"stops": [
[
14,
9
],
[
18,
13
]
]
},
"text-field": "{name}",
"text-anchor": "center",
"text-offset": [
0,
0
],
"symbol-placement": "line"
},
"paint": {
"text-color": "#000000",
"text-halo-color": "rgba(255, 255, 255, 0.97)",
"text-halo-width": 1
},
"metadata": {},
"filter": [
"all",
[
"!=",
"subclass",
"ferry"
]
],
"order": 185
},
{
"id": "highway-shield-tertiary",
"type": "symbol",
"source": "openmaptiles",
"source-layer": "transportation_name",
"minzoom": 9,
"layout": {
"icon-size": 1,
"text-font": [
"Noto Sans Regular"
],
"text-size": {
"stops": [
[
9,
10
],
[
15,
11
],
[
17,
12
]
]
},
"icon-image": "road_tertiary",
"text-field": "{ref}",
"visibility": "visible",
"icon-anchor": "center",
"icon-padding": 2,
"icon-text-fit": "both",
"symbol-spacing": 560,
"symbol-placement": {
"base": 1,
"stops": [
[
10,
"point"
],
[
11,
"line"
]
]
},
"symbol-avoid-edges": true,
"icon-text-fit-padding": [
3,
4,
3,
4
],
"icon-rotation-alignment": "viewport",
"text-rotation-alignment": "viewport"
},
"paint": {
"text-color": "#3b3b3b"
},
"filter": [
"all",
[
"==",
"$type",
"LineString"
],
[
"==",
"class",
"tertiary"
],
[
"has",
"ref"
]
],
"order": 186
},
{
"id": "highway-shield-secondary",
"type": "symbol",
"source": "openmaptiles",
"source-layer": "transportation_name",
"minzoom": 9,
"layout": {
"icon-size": 1,
"text-font": [
"Noto Sans Regular"
],
"text-size": {
"stops": [
[
9,
10
],
[
15,
11
],
[
17,
12
]
]
},
"icon-image": "road_secondary",
"text-field": "{ref}",
"visibility": "visible",
"icon-anchor": "center",
"icon-padding": 2,
"icon-text-fit": "both",
"symbol-spacing": 560,
"symbol-placement": {
"base": 1,
"stops": [
[
10,
"point"
],
[
11,
"line"
]
]
},
"symbol-avoid-edges": true,
"icon-text-fit-padding": [
3,
4,
3,
4
],
"icon-rotation-alignment": "viewport",
"text-rotation-alignment": "viewport"
},
"paint": {
"text-color": "#323b00"
},
"filter": [
"all",
[
"==",
"$type",
"LineString"
],
[
"==",
"class",
"secondary"
],
[
"has",
"ref"
]
],
"order": 187
},
{
"id": "highway-shield-primary",
"type": "symbol",
"source": "openmaptiles",
"source-layer": "transportation_name",
"minzoom": 9,
"layout": {
"icon-size": 1,
"text-font": [
"Noto Sans Regular"
],
"text-size": {
"stops": [
[
9,
10
],
[
15,
11
],
[
17,
12
]
]
},
"icon-image": "road_primary",
"text-field": "{ref}",
"visibility": "visible",
"icon-anchor": "center",
"icon-padding": 2,
"icon-text-fit": "both",
"symbol-spacing": 560,
"symbol-placement": {
"base": 1,
"stops": [
[
10,
"point"
],
[
11,
"line"
]
]
},
"symbol-avoid-edges": true,
"icon-text-fit-padding": [
3,
4,
3,
4
],
"icon-rotation-alignment": "viewport",
"text-rotation-alignment": "viewport"
},
"paint": {
"text-color": "#4c2e00"
},
"filter": [
"all",
[
"==",
"$type",
"LineString"
],
[
"==",
"class",
"primary"
],
[
"has",
"ref"
]
],
"order": 188
},
{
"id": "highway-shield-motorway",
"type": "symbol",
"source": "openmaptiles",
"source-layer": "transportation_name",
"minzoom": 9,
"layout": {
"icon-size": 1,
"text-font": [
"Noto Sans Regular"
],
"text-size": {
"stops": [
[
9,
10
],
[
15,
11
],
[
17,
12
]
]
},
"icon-image": "road_motorway",
"text-field": "{ref}",
"visibility": "visible",
"icon-anchor": "center",
"icon-padding": 2,
"icon-text-fit": "both",
"text-optional": false,
"symbol-spacing": 760,
"text-max-width": 10,
"symbol-placement": {
"base": 1,
"stops": [
[
10,
"point"
],
[
11,
"line"
]
]
},
"text-keep-upright": true,
"symbol-avoid-edges": true,
"icon-text-fit-padding": [
3,
4,
3,
4
],
"icon-rotation-alignment": "viewport",
"text-rotation-alignment": "viewport"
},
"paint": {
"text-color": "#620728"
},
"filter": [
"all",
[
"==",
"$type",
"LineString"
],
[
"==",
"class",
"motorway"
],
[
"has",
"ref"
]
],
"order": 189
}
]
}