-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlinear_label.mss
131 lines (129 loc) · 6.23 KB
/
linear_label.mss
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
#vector_linear_labels::limited_access_hwy {
::freeway_text[rclass=0] {
[zoom>=12][zoom<=18] {
text-name:"[name]";text-face-name:"Open Sans Regular";text-placement:line;
text-halo-radius:2;text-min-padding:20;text-min-distance:10;text-character-spacing:1;
text-transform:uppercase;text-spacing:200;
[zoom=12] {
text-size:11;text-fill:#4d4d4d;text-halo-fill:@background_9-12;
}
[zoom>=13][zoom<=15] {
text-fill:#4d4d4d;text-halo-fill:@background_13-15;
[zoom=13] {text-size:11;}
[zoom=14] {text-size:11;}
[zoom=15] {text-size:12;}
}
[zoom=16] {text-size:13;text-fill:#000000;text-halo-fill:@background_16-18;}
[zoom>=17][zoom<=18] {text-size:14;text-fill:#000000;text-halo-fill:@background_16-18;}
}
}
::lane_text[rclass=16] {
[zoom>=12][zoom<=18] {
text-name:"[name]";text-face-name:"Open Sans Regular";text-placement:line;
text-halo-radius:2;text-min-padding:20;text-min-distance:10;text-character-spacing:1;
text-transform:uppercase;text-spacing:200;
[zoom=12] {
text-size:11;text-fill:#4d4d4d;text-halo-fill:@background_9-12;
}
[zoom>=13][zoom<=15] {
text-fill:#4d4d4d;text-halo-fill:@background_13-15;
[zoom=13] {text-size:11;}
[zoom=14] {text-size:11;}
[zoom=15] {text-size:12;}
}
[zoom=16] {text-size:13;text-fill:#000000;text-halo-fill:@background_16-18;}
[zoom>=17][zoom<=18] {text-size:14;text-fill:#000000;text-halo-fill:@background_16-18;}
}
}
}
/* this layer prevents surface street text from crossing over highways */
#vector_linear_geometry_overlay [zoom>=11][zoom<=18][rclass=0][ramp!=true] {
shield-face-name:"Open Sans Bold";
shield-placement:line;
[zoom>=11][zoom<=13] {shield-file:url("markers/transparent-10.png");shield-spacing:5;shield-opacity:0;}
[zoom>=14][zoom<=16] {shield-file:url("markers/transparent-15.png");shield-spacing:10;shield-opacity:0;}
[zoom>=17][zoom<=18] {shield-file:url("markers/transparent-25.png");shield-spacing:15;shield-opacity:0;}
}
#vector_linear_labels::surface_features {
::major_road1_text[rclass=1][zoom>=11][zoom<=18] {
text-name:"[name]";text-face-name:"Open Sans Regular";text-placement:line;
text-halo-radius:2;text-min-padding:20;text-min-distance:10;text-character-spacing:1;
text-spacing:200;
[zoom>=11][zoom<=12] {
text-size:11;text-fill:#4d4d4d;text-halo-fill:@background_9-12;}
[zoom>=13][zoom<=15] {
text-fill:#1a1a1a;text-halo-fill:@background_13-15;
[zoom=13] {text-size:11;}
[zoom=14] {text-size:11;}
[zoom=15] {text-size:12;}
}
[zoom=16] {text-size:13;text-fill:#000000;text-halo-fill:@background_16-18;}
[zoom>=17][zoom<=18] {text-size:14;text-fill:#000000;text-halo-fill:@background_16-18;}
}
::major_road2[rclass=2][zoom>=12][zoom<=18] {
text-name:"[name]";text-face-name:"Open Sans Regular";text-placement:line;
text-halo-radius:2;text-min-padding:20;text-min-distance:10;text-character-spacing:1;
text-spacing:200;
[zoom>=12][zoom<=14] {text-fill:#4d4d4d;
[zoom=12] {text-size:10;text-halo-fill:@background_9-12;}
[zoom>=13][zoom<=14] {text-halo-fill:@background_13-15;text-size:10;}
}
[zoom>=15][zoom<=18] {text-fill:#1a1a1a;
[zoom=15] {text-size:11;text-halo-fill:@background_13-15;}
[zoom>=16][zoom<=18] {text-size:13;text-halo-fill:@background_16-18;}
}
}
::major_road3[rclass=3][zoom>=12][zoom<=18] {
text-name:"[name]";text-face-name:"Open Sans Regular";text-placement:line;
text-halo-radius:2;text-min-padding:20;text-min-distance:10;text-character-spacing:1;
text-spacing:200;
[zoom>=12][zoom<=14] {text-fill:#4d4d4d;
[zoom=12] {text-size:10;text-halo-fill:@background_9-12;}
[zoom>=13][zoom<=14] {text-halo-fill:@background_13-15;text-size:10;}
}
[zoom>=15][zoom<=18] {text-fill:#1a1a1a;
[zoom=15] {text-size:11;text-halo-fill:@background_13-15;}
[zoom>=16][zoom<=18] {text-size:13;text-halo-fill:@background_16-18;}
}
}
::major_road4[rclass=4][zoom>=14][zoom<=18] {
text-name:"[name]";text-face-name:"Open Sans Regular";text-placement:line;
text-halo-radius:2;text-min-padding:20;text-min-distance:10;text-character-spacing:1;
text-spacing:200;text-fill:#666666;
[zoom=14] {text-halo-fill:@background_13-15;text-size:10;text-min-path-length:300}
[zoom=15] {text-halo-fill:@background_13-15;text-size:11;text-min-path-length:150}
[zoom>=16][zoom<=18] {text-size:13;text-halo-fill:@background_16-18;}
}
::minor_road[rclass=5][zoom>=14][zoom<=18] {
text-name:"[name]";text-face-name:"Open Sans Regular";text-placement:line;
text-halo-radius:2;text-min-padding:20;text-min-distance:10;text-character-spacing:1;
text-spacing:200;text-fill:#666666;
[zoom=14] {text-halo-fill:@background_13-15;text-size:10;text-min-path-length:100}
[zoom=15] {text-halo-fill:@background_13-15;text-size:11;text-min-path-length:100}
[zoom>=16][zoom<=18] {text-size:13;text-halo-fill:@background_16-18;}
}
::service_road[rclass=6][zoom>=15][zoom<=18] {
text-name:"[name]";text-face-name:"Open Sans Regular";text-placement:line;
text-halo-radius:2;text-min-padding:20;text-min-distance:10;text-character-spacing:1;
text-fill:#666666;
[zoom=15] {text-size:11;text-halo-fill:@background_13-15;}
[zoom>=16][zoom<=18] {text-size:13;text-halo-fill:@background_16-18;}
}
::ferry[rclass=13][zoom>=12][zoom<=18] {
text-name:"[name]";text-face-name:"Open Sans Italic";text-placement:line;
text-min-padding:20;text-character-spacing:1;text-fill:#4a7bd4;
[zoom=12] {text-size:10;}
[zoom>=13][zoom<=15] {text-size:11;}
[zoom>=16][zoom<=18] {text-size:13;}
}
::railroad[rclass=14][zoom>=16][zoom<=18] {
text-name:"[name]";text-face-name:"Open Sans Italic";text-placement:line;
text-halo-radius:2;text-min-padding:20;text-min-distance:10;text-character-spacing:1;
text-fill:#666666;text-size:13;text-halo-fill:@background_16-18;
}
::river[rclass=11][zoom>=16][zoom<=18] {
text-name:"[name]";text-face-name:"Open Sans Italic";text-placement:line;
text-halo-radius:2;text-min-padding:20;text-min-distance:10;text-character-spacing:1;
text-fill:#4a7bd4;text-size:13;text-halo-fill:@background_16-18;
}
}