-
Notifications
You must be signed in to change notification settings - Fork 1
/
road-bridge-fill.yaml
100 lines (99 loc) · 1.99 KB
/
road-bridge-fill.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
id: road-bridge-fill
source: spirit
source-layer: roads
type: line
# This messy filter could be done with a [step, [zoom], ..., N, ...] but this
# would require re-stating the conditions for all lower zoom for each step.
# Instead, it requires one of the any branches is met, and each branch involves
# a zoom level conditional. If the zoom-level part is omitted, the results look
# odd when zooming in and out.
filter:
- all
- - any
- - all # Allow certain classifications to appear when they are included in the source
- - in
- [get, highway]
- - literal
- - motorway
- trunk
- primary
- secondary
- tertiary
- unclassified
- residential
- living_street
- - all
- [==, [get, highway], service]
- [==, [get, minor], null]
- [">=", [zoom], 14]
- - all
- [==, [get, highway], service]
- [">=", [zoom], 15]
- [get, bridge]
paint:
line-color: !!inc/file style/inc/road-fill-color.yaml
line-width:
- interpolate
- - exponential
- 1.35
- - zoom
- 12
- - match
- [get, highway]
- motorway
- 2
- trunk
- 1.5
- primary
- 1.5
- secondary
- 1
- tertiary
- 1
- unclassified
- 1
- residential
- 1
- living_street
- 1
- service
- - match
- [to-string, [get, minor]]
- "true"
- 0.2
- 0.5
- 1
- 20
- - match
- [get, highway]
- motorway
- 25
- trunk
- 20
- primary
- 20
- secondary
- 15
- tertiary
- 15
- unclassified
- 10
- residential
- 10
- living_street
- 10
- service
- - match
- [to-string, [get, minor]]
- "true"
- 3
- 6
- 10
layout:
line-cap: butt
line-sort-key:
- +
- [get, z_order]
- - '*'
- [get, layer]
- 1000