@swr-data-lab/components 2.4.3 → 2.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -36,7 +36,7 @@ export default function makePlaceLabels() {
|
|
|
36
36
|
{
|
|
37
37
|
id: 'label-place-quarter',
|
|
38
38
|
filter: ['all', ['in', 'kind', 'neighbourhood']],
|
|
39
|
-
minzoom:
|
|
39
|
+
minzoom: 13,
|
|
40
40
|
layout: {
|
|
41
41
|
'text-size': {
|
|
42
42
|
stops: [
|
|
@@ -46,7 +46,7 @@ export default function makePlaceLabels() {
|
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
48
|
paint: {
|
|
49
|
-
'text-color': tokens.
|
|
49
|
+
'text-color': tokens.label_secondary
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
52
|
{
|
|
@@ -57,17 +57,17 @@ export default function makePlaceLabels() {
|
|
|
57
57
|
['>', 'population', 1000],
|
|
58
58
|
['<', 'population', 15_000]
|
|
59
59
|
],
|
|
60
|
-
minzoom:
|
|
60
|
+
minzoom: 12,
|
|
61
61
|
layout: {
|
|
62
62
|
'text-size': {
|
|
63
63
|
stops: [
|
|
64
|
-
[11,
|
|
65
|
-
[15,
|
|
64
|
+
[11, 14],
|
|
65
|
+
[15, 16]
|
|
66
66
|
]
|
|
67
67
|
}
|
|
68
68
|
},
|
|
69
69
|
paint: {
|
|
70
|
-
'text-color': tokens.
|
|
70
|
+
'text-color': tokens.label_secondary
|
|
71
71
|
}
|
|
72
72
|
},
|
|
73
73
|
{
|
|
@@ -191,14 +191,15 @@ export default function makePlaceLabels() {
|
|
|
191
191
|
'source-layer': 'place_labels',
|
|
192
192
|
layout: {
|
|
193
193
|
'text-font': tokens.sans_regular,
|
|
194
|
-
'text-letter-spacing': 0.
|
|
194
|
+
'text-letter-spacing': 0.035,
|
|
195
195
|
'text-field': '{name_de}',
|
|
196
196
|
...el.layout
|
|
197
197
|
},
|
|
198
198
|
paint: {
|
|
199
199
|
'text-color': tokens.label_secondary,
|
|
200
200
|
'text-halo-color': tokens.background,
|
|
201
|
-
'text-halo-width':
|
|
201
|
+
'text-halo-width': 2.5,
|
|
202
|
+
'text-halo-blur': 0,
|
|
202
203
|
...el.paint
|
|
203
204
|
}
|
|
204
205
|
};
|
|
@@ -224,7 +225,8 @@ export default function makePlaceLabels() {
|
|
|
224
225
|
paint: {
|
|
225
226
|
'text-color': tokens.label_tertiary,
|
|
226
227
|
'text-halo-color': tokens.background,
|
|
227
|
-
'text-halo-width':
|
|
228
|
+
'text-halo-width': 2,
|
|
229
|
+
'text-halo-blur': 0
|
|
228
230
|
}
|
|
229
231
|
}
|
|
230
232
|
].map((el) => {
|
|
@@ -15,9 +15,9 @@ const tokens = {
|
|
|
15
15
|
street_secondary_case: 'hsl(0, 0%, 75%)',
|
|
16
16
|
street_tertiary: 'hsl(0, 0%, 95%)',
|
|
17
17
|
street_tertiary_case: 'hsl(0, 0%, 70%)',
|
|
18
|
-
label_primary: 'hsl(240,
|
|
19
|
-
label_secondary: 'hsl(240, 2%,
|
|
20
|
-
label_tertiary: 'hsl(240, 2%,
|
|
18
|
+
label_primary: 'hsl(240, 10%, 2%)',
|
|
19
|
+
label_secondary: 'hsl(240, 2%, 15%)',
|
|
20
|
+
label_tertiary: 'hsl(240, 2%, 40%)',
|
|
21
21
|
building: '#f3f2f1'
|
|
22
22
|
};
|
|
23
23
|
export default tokens;
|