@siemens/map-styles 49.13.0

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.
@@ -0,0 +1,3038 @@
1
+ /**
2
+ * Copyright (c) Siemens 2016 - 2026
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ const fonts = ['SiemensSans Pro', 'sans-serif'];
6
+ // Colors
7
+ const deepBlue900 = 'rgba(32, 33, 50, 1)';
8
+ const green700 = (opacity) => `rgba(28, 112, 63, ${opacity})`;
9
+ const green500 = (opacity) => `rgba(40, 191, 102, ${opacity})`;
10
+ const green300 = (opacity) => `rgba(114, 230, 163, ${opacity})`;
11
+ const blue700 = 'rgb(30, 82, 153)';
12
+ const blue100 = 'rgb(210, 226, 247)';
13
+ /** Build the style specification based on the current element theme. */
14
+ const siMapStyle = (key, dark) => ({
15
+ 'version': 8,
16
+ 'name': 'siemens-brand',
17
+ 'sources': {
18
+ 'attribution': {
19
+ 'attribution': '<a href="https://carto.com/" target="_blank">&copy; CARTO</a>',
20
+ 'type': 'vector'
21
+ },
22
+ 'openmaptiles': {
23
+ 'url': `https://api.maptiler.com/tiles/v3/tiles.json?key=${key}`,
24
+ 'type': 'vector'
25
+ },
26
+ 'maptiler_attribution': {
27
+ 'attribution': '<a href="https://www.maptiler.com/copyright/" target="_blank">&copy; MapTiler</a> <a href="https://www.openstreetmap.org/copyright" target="_blank">&copy; OpenStreetMap contributors</a>',
28
+ 'type': 'vector'
29
+ }
30
+ },
31
+ 'layers': [
32
+ {
33
+ 'id': 'background',
34
+ 'type': 'background',
35
+ 'layout': {
36
+ 'visibility': 'visible'
37
+ },
38
+ 'paint': {
39
+ 'background-color': dark ? deepBlue900 : 'rgb(247, 247, 246)',
40
+ 'background-opacity': 1
41
+ }
42
+ },
43
+ {
44
+ 'id': 'landcover',
45
+ 'type': 'fill',
46
+ 'source': 'openmaptiles',
47
+ 'source-layer': 'landcover',
48
+ 'paint': {
49
+ 'fill-color': [
50
+ 'interpolate',
51
+ ['linear'],
52
+ ['zoom'],
53
+ 8,
54
+ dark ? green500(0.15) : green300(0.15),
55
+ 9,
56
+ dark ? green500(0.15) : green300(0.2),
57
+ 11,
58
+ dark ? green500(0.2) : green300(0.3),
59
+ 13,
60
+ dark ? green500(0.1) : green300(0.35),
61
+ 15,
62
+ dark ? green500(0.15) : green300(0.5)
63
+ ],
64
+ 'fill-opacity': 1
65
+ },
66
+ 'filter': [
67
+ 'any',
68
+ ['==', ['get', 'class'], 'wood'],
69
+ ['==', ['get', 'class'], 'grass'],
70
+ ['==', ['get', 'subclass'], 'recreation_ground']
71
+ ]
72
+ },
73
+ {
74
+ 'id': 'park_national_park',
75
+ 'type': 'fill',
76
+ 'source': 'openmaptiles',
77
+ 'source-layer': 'park',
78
+ 'minzoom': 6,
79
+ 'layout': {
80
+ 'visibility': 'visible'
81
+ },
82
+ 'paint': {
83
+ 'fill-color': [
84
+ 'interpolate',
85
+ ['linear'],
86
+ ['zoom'],
87
+ 8,
88
+ dark ? green700(0.2) : green300(0.2),
89
+ 9,
90
+ dark ? green700(0.25) : green300(0.25),
91
+ 11,
92
+ dark ? green700(0.35) : green300(0.35),
93
+ 13,
94
+ dark ? green700(0.4) : green300(0.4),
95
+ 15,
96
+ dark ? green700(0.6) : green300(0.6)
97
+ ],
98
+ 'fill-opacity': 1,
99
+ 'fill-translate-anchor': 'map'
100
+ },
101
+ 'filter': ['all', ['==', ['get', 'class'], 'national_park']]
102
+ },
103
+ {
104
+ 'id': 'park_nature_reserve',
105
+ 'type': 'fill',
106
+ 'source': 'openmaptiles',
107
+ 'source-layer': 'park',
108
+ 'minzoom': 0,
109
+ 'layout': {
110
+ 'visibility': 'visible'
111
+ },
112
+ 'paint': {
113
+ 'fill-color': [
114
+ 'interpolate',
115
+ ['linear'],
116
+ ['zoom'],
117
+ 8,
118
+ dark ? green700(0.2) : green300(0.2),
119
+ 9,
120
+ dark ? green700(0.25) : green300(0.25),
121
+ 11,
122
+ dark ? green700(0.35) : green300(0.35),
123
+ 13,
124
+ dark ? green700(0.4) : green300(0.4),
125
+ 15,
126
+ dark ? green700(0.6) : green300(0.6)
127
+ ],
128
+ 'fill-opacity': ['interpolate', ['linear'], ['zoom'], 6, 0.7, 9, 0.9],
129
+ 'fill-antialias': true
130
+ },
131
+ 'filter': ['all', ['==', ['get', 'class'], 'nature_reserve']]
132
+ },
133
+ {
134
+ 'id': 'landuse_residential',
135
+ 'type': 'fill',
136
+ 'source': 'openmaptiles',
137
+ 'source-layer': 'landuse',
138
+ 'minzoom': 6,
139
+ 'paint': {
140
+ 'fill-color': [
141
+ 'interpolate',
142
+ ['linear'],
143
+ ['zoom'],
144
+ 5,
145
+ dark ? 'rgba(27, 28, 29, 0.5)' : 'rgba(222, 226, 232, 0.5)',
146
+ 8,
147
+ dark ? 'rgba(27, 28, 29, 0.45)' : 'rgba(222, 226, 232, 0.45)',
148
+ 9,
149
+ dark ? 'rgba(27, 28, 29, 0.4)' : 'rgba(222, 226, 232, 0.4)',
150
+ 11,
151
+ dark ? 'rgba(27, 28, 29, 0.35)' : 'rgba(222, 226, 232, 0.35)',
152
+ 13,
153
+ dark ? 'rgba(27, 28, 29, 0.3)' : 'rgba(222, 226, 232, 0.3)',
154
+ 15,
155
+ dark ? 'rgba(27, 28, 29, 0.25)' : 'rgba(222, 226, 232, 0.25)',
156
+ 16,
157
+ dark ? 'rgba(27, 28, 29, 0.15)' : 'rgba(222, 226, 232, 0.15)'
158
+ ],
159
+ 'fill-opacity': ['interpolate', ['linear'], ['zoom'], 6, 0.6, 9, 1]
160
+ },
161
+ 'filter': ['any', ['==', ['get', 'class'], 'residential']]
162
+ },
163
+ {
164
+ 'id': 'landuse',
165
+ 'type': 'fill',
166
+ 'source': 'openmaptiles',
167
+ 'source-layer': 'landuse',
168
+ 'paint': {
169
+ 'fill-color': [
170
+ 'interpolate',
171
+ ['linear'],
172
+ ['zoom'],
173
+ 8,
174
+ dark ? 'rgba(0, 0, 0, 0.2)' : 'rgba(195, 189, 205, 0.2)',
175
+ 9,
176
+ dark ? 'rgba(0, 0, 0, 0.25)' : 'rgba(195, 189, 205, 0.25)',
177
+ 11,
178
+ dark ? 'rgba(0, 0, 0, 0.35)' : 'rgba(195, 189, 205, 0.35)',
179
+ 13,
180
+ dark ? 'rgba(0, 0, 0, 0.4)' : 'rgba(195, 189, 205, 0.4)',
181
+ 15,
182
+ dark ? 'rgb(20, 20, 20)' : 'rgb(218, 216, 222)'
183
+ ]
184
+ },
185
+ 'filter': ['any', ['==', ['get', 'class'], 'cemetery'], ['==', ['get', 'class'], 'stadium']]
186
+ },
187
+ {
188
+ 'id': 'waterway',
189
+ 'type': 'line',
190
+ 'source': 'openmaptiles',
191
+ 'source-layer': 'waterway',
192
+ 'layout': {
193
+ 'visibility': 'visible'
194
+ },
195
+ 'paint': {
196
+ 'line-color': dark ? blue700 : blue100,
197
+ 'line-width': ['interpolate', ['linear'], ['zoom'], 8, 0.5, 9, 1, 15, 2, 16, 3]
198
+ }
199
+ },
200
+ {
201
+ 'id': 'boundary_county',
202
+ 'type': 'line',
203
+ 'source': 'openmaptiles',
204
+ 'source-layer': 'boundary',
205
+ 'minzoom': 9,
206
+ 'maxzoom': 24,
207
+ 'paint': {
208
+ 'line-color': [
209
+ 'interpolate',
210
+ ['linear'],
211
+ ['zoom'],
212
+ 4,
213
+ dark ? 'rgba(110, 110, 110, 1)' : 'rgba(145, 145, 145, 0.6)',
214
+ 5,
215
+ dark ? 'rgba(112, 112, 112, 1)' : 'rgba(145, 145, 145, 0.8)',
216
+ 6,
217
+ dark ? 'rgba(189, 189, 189, 1)' : 'rgba(145, 145, 145, 0.9)'
218
+ ],
219
+ 'line-width': ['interpolate', ['linear'], ['zoom'], 4, 0.5, 7, 1]
220
+ },
221
+ 'filter': [
222
+ 'all',
223
+ ['==', ['get', 'admin_level'], 6],
224
+ ['==', ['get', 'maritime'], 0],
225
+ ['==', ['get', 'disputed'], 0]
226
+ ]
227
+ },
228
+ {
229
+ 'id': 'boundary_state',
230
+ 'type': 'line',
231
+ 'source': 'openmaptiles',
232
+ 'source-layer': 'boundary',
233
+ 'minzoom': 4,
234
+ 'paint': {
235
+ 'line-color': [
236
+ 'interpolate',
237
+ ['linear'],
238
+ ['zoom'],
239
+ 4,
240
+ dark ? 'rgba(68, 73, 76, 1)' : '#d4d5d6',
241
+ 5,
242
+ dark ? 'rgba(68, 73, 76, 1)' : '#d4d5d6',
243
+ 6,
244
+ dark ? '#656A6E' : '#e1c5c7'
245
+ ],
246
+ 'line-width': ['interpolate', ['linear'], ['zoom'], 4, 0.5, 7, 1, 8, 1, 9, 1.2]
247
+ },
248
+ 'filter': [
249
+ 'all',
250
+ ['==', ['get', 'admin_level'], 4],
251
+ ['==', ['get', 'maritime'], 0],
252
+ ['==', ['get', 'disputed'], 0]
253
+ ]
254
+ },
255
+ {
256
+ 'id': 'water',
257
+ 'type': 'fill',
258
+ 'source': 'openmaptiles',
259
+ 'source-layer': 'water',
260
+ 'minzoom': 0,
261
+ 'maxzoom': 24,
262
+ 'layout': {
263
+ 'visibility': 'visible'
264
+ },
265
+ 'paint': {
266
+ 'fill-color': dark ? 'rgba(0, 0, 0, 1)' : 'rgb(175, 201, 241)',
267
+ 'fill-opacity': 1,
268
+ 'fill-antialias': true,
269
+ 'fill-translate-anchor': 'map'
270
+ },
271
+ 'filter': ['all', ['==', ['geometry-type'], 'Polygon'], ['!=', ['get', 'brunnel'], 'tunnel']]
272
+ },
273
+ {
274
+ 'id': 'water_shadow',
275
+ 'type': 'fill',
276
+ 'source': 'openmaptiles',
277
+ 'source-layer': 'water',
278
+ 'minzoom': 0,
279
+ 'layout': {
280
+ 'visibility': 'visible'
281
+ },
282
+ 'paint': {
283
+ 'fill-color': dark ? 'rgba(74, 84, 113, 1)' : 'rgb(210, 226, 247)',
284
+ 'fill-opacity': 1,
285
+ 'fill-antialias': true,
286
+ 'fill-translate': [
287
+ 'interpolate',
288
+ ['linear'],
289
+ ['zoom'],
290
+ 0,
291
+ ['literal', [0, 2]],
292
+ 6,
293
+ ['literal', [0, 1]],
294
+ 14,
295
+ ['literal', [0, 1]],
296
+ 17,
297
+ ['literal', [0, 2]]
298
+ ],
299
+ 'fill-translate-anchor': 'map'
300
+ },
301
+ 'filter': ['all', ['==', ['geometry-type'], 'Polygon'], ['!=', ['get', 'brunnel'], 'tunnel']]
302
+ },
303
+ {
304
+ 'id': 'aeroway-runway',
305
+ 'type': 'line',
306
+ 'source': 'openmaptiles',
307
+ 'source-layer': 'aeroway',
308
+ 'minzoom': 12,
309
+ 'layout': {
310
+ 'line-cap': 'square'
311
+ },
312
+ 'paint': {
313
+ 'line-color': dark ? 'rgb(97, 97, 97)' : 'rgb(227, 226, 226)',
314
+ 'line-width': ['interpolate', ['linear'], ['zoom'], 11, 1, 13, 4, 14, 6, 15, 8, 16, 10]
315
+ },
316
+ 'filter': ['all', ['==', ['get', 'class'], 'runway']]
317
+ },
318
+ {
319
+ 'id': 'aeroway-taxiway',
320
+ 'type': 'line',
321
+ 'source': 'openmaptiles',
322
+ 'source-layer': 'aeroway',
323
+ 'minzoom': 13,
324
+ 'paint': {
325
+ 'line-color': dark ? 'rgb(97, 97, 97)' : 'rgb(227, 226, 226)',
326
+ 'line-width': ['interpolate', ['linear'], ['zoom'], 13, 0.5, 14, 1, 15, 2, 16, 4]
327
+ },
328
+ 'filter': ['all', ['==', ['get', 'class'], 'taxiway']]
329
+ },
330
+ {
331
+ 'id': 'waterway_label',
332
+ 'type': 'symbol',
333
+ 'source': 'openmaptiles',
334
+ 'source-layer': 'waterway',
335
+ 'layout': {
336
+ 'text-font': fonts,
337
+ 'text-size': ['interpolate', ['linear'], ['zoom'], 9, 8, 10, 9],
338
+ 'text-field': ['get', 'name_en'],
339
+ 'visibility': 'visible',
340
+ 'text-offset': [
341
+ 'interpolate',
342
+ ['linear'],
343
+ ['zoom'],
344
+ 6,
345
+ ['literal', [0, -0.2]],
346
+ 11,
347
+ ['literal', [0, -0.4]],
348
+ 12,
349
+ ['literal', [0, -0.6]]
350
+ ],
351
+ 'text-padding': 2,
352
+ 'symbol-spacing': 300,
353
+ 'symbol-placement': 'line',
354
+ 'text-keep-upright': true,
355
+ 'symbol-avoid-edges': false,
356
+ 'text-letter-spacing': 0,
357
+ 'text-pitch-alignment': 'auto',
358
+ 'text-rotation-alignment': 'auto'
359
+ },
360
+ 'paint': {
361
+ 'text-color': dark ? 'rgba(129, 173, 235, 1)' : 'rgb(45, 113, 218)',
362
+ 'text-halo-color': dark ? 'rgba(0, 0, 0, 1)' : 'rgb(240, 245, 252)',
363
+ 'text-halo-width': 1
364
+ },
365
+ 'filter': ['all', ['has', 'name'], ['==', ['get', 'class'], 'river']]
366
+ },
367
+ {
368
+ 'id': 'tunnel_service_case',
369
+ 'type': 'line',
370
+ 'source': 'openmaptiles',
371
+ 'source-layer': 'transportation',
372
+ 'minzoom': 15,
373
+ 'maxzoom': 24,
374
+ 'layout': {
375
+ 'line-cap': 'round',
376
+ 'line-join': 'round'
377
+ },
378
+ 'paint': {
379
+ 'line-color': dark ? 'rgb(0, 0, 0)' : 'rgb(163, 163, 152)',
380
+ 'line-width': ['interpolate', ['linear'], ['zoom'], 15, 1, 16, 3, 17, 6, 18, 8],
381
+ 'line-opacity': 1
382
+ },
383
+ 'filter': ['all', ['==', ['get', 'class'], 'service'], ['==', ['get', 'brunnel'], 'tunnel']]
384
+ },
385
+ {
386
+ 'id': 'tunnel_minor_case',
387
+ 'type': 'line',
388
+ 'source': 'openmaptiles',
389
+ 'source-layer': 'transportation',
390
+ 'minzoom': 13,
391
+ 'maxzoom': 24,
392
+ 'layout': {
393
+ 'line-cap': 'butt',
394
+ 'line-join': 'miter'
395
+ },
396
+ 'paint': {
397
+ 'line-color': dark ? 'rgb(0, 0, 0)' : 'rgb(163, 163, 152)',
398
+ 'line-width': [
399
+ 'interpolate',
400
+ ['linear'],
401
+ ['zoom'],
402
+ 11,
403
+ 0.5,
404
+ 12,
405
+ 0.5,
406
+ 14,
407
+ 2,
408
+ 15,
409
+ 4,
410
+ 16,
411
+ 6,
412
+ 17,
413
+ 10,
414
+ 18,
415
+ 14
416
+ ],
417
+ 'line-opacity': 1
418
+ },
419
+ 'filter': ['all', ['==', ['get', 'class'], 'minor'], ['==', ['get', 'brunnel'], 'tunnel']]
420
+ },
421
+ {
422
+ 'id': 'tunnel_sec_case',
423
+ 'type': 'line',
424
+ 'source': 'openmaptiles',
425
+ 'source-layer': 'transportation',
426
+ 'minzoom': 11,
427
+ 'maxzoom': 24,
428
+ 'layout': {
429
+ 'line-cap': 'round',
430
+ 'line-join': 'round'
431
+ },
432
+ 'paint': {
433
+ 'line-color': dark ? 'rgb(0, 0, 0)' : 'rgb(163, 163, 152)',
434
+ 'line-width': [
435
+ 'interpolate',
436
+ ['linear'],
437
+ ['zoom'],
438
+ 11,
439
+ 0.5,
440
+ 12,
441
+ 1,
442
+ 13,
443
+ 2,
444
+ 14,
445
+ 5,
446
+ 15,
447
+ 6,
448
+ 16,
449
+ 8,
450
+ 17,
451
+ 12,
452
+ 18,
453
+ 16
454
+ ],
455
+ 'line-opacity': 1
456
+ },
457
+ 'filter': [
458
+ 'all',
459
+ ['in', ['get', 'class'], ['literal', ['secondary', 'tertiary']]],
460
+ ['==', ['get', 'brunnel'], 'tunnel']
461
+ ]
462
+ },
463
+ {
464
+ 'id': 'tunnel_pri_case',
465
+ 'type': 'line',
466
+ 'source': 'openmaptiles',
467
+ 'source-layer': 'transportation',
468
+ 'minzoom': 8,
469
+ 'maxzoom': 24,
470
+ 'layout': {
471
+ 'line-cap': 'butt',
472
+ 'line-join': 'round'
473
+ },
474
+ 'paint': {
475
+ 'line-color': dark ? 'rgb(0, 0, 0)' : 'rgb(163, 163, 152)',
476
+ 'line-width': [
477
+ 'interpolate',
478
+ ['linear'],
479
+ ['zoom'],
480
+ 6,
481
+ 0.5,
482
+ 7,
483
+ 0.8,
484
+ 8,
485
+ 1,
486
+ 11,
487
+ 3,
488
+ 13,
489
+ 4,
490
+ 14,
491
+ 6,
492
+ 15,
493
+ 8,
494
+ 16,
495
+ 10,
496
+ 17,
497
+ 14,
498
+ 18,
499
+ 18
500
+ ],
501
+ 'line-opacity': ['interpolate', ['linear'], ['zoom'], 5, 0.5, 7, 1]
502
+ },
503
+ 'filter': [
504
+ 'all',
505
+ ['==', ['get', 'class'], 'primary'],
506
+ ['!=', ['get', 'ramp'], 1],
507
+ ['==', ['get', 'brunnel'], 'tunnel']
508
+ ]
509
+ },
510
+ {
511
+ 'id': 'tunnel_trunk_case',
512
+ 'type': 'line',
513
+ 'source': 'openmaptiles',
514
+ 'source-layer': 'transportation',
515
+ 'minzoom': 5,
516
+ 'maxzoom': 24,
517
+ 'layout': {
518
+ 'line-cap': 'butt',
519
+ 'line-join': 'round',
520
+ 'visibility': 'visible'
521
+ },
522
+ 'paint': {
523
+ 'line-color': dark ? 'rgb(0, 0, 0)' : 'rgb(163, 163, 152)',
524
+ 'line-width': [
525
+ 'interpolate',
526
+ ['linear'],
527
+ ['zoom'],
528
+ 6,
529
+ 0.5,
530
+ 7,
531
+ 0.8,
532
+ 8,
533
+ 1,
534
+ 11,
535
+ 3,
536
+ 13,
537
+ 4,
538
+ 14,
539
+ 6,
540
+ 15,
541
+ 8,
542
+ 16,
543
+ 10,
544
+ 17,
545
+ 14,
546
+ 18,
547
+ 18
548
+ ],
549
+ 'line-opacity': ['interpolate', ['linear'], ['zoom'], 5, 0.5, 7, 1]
550
+ },
551
+ 'filter': [
552
+ 'all',
553
+ ['==', ['get', 'class'], 'trunk'],
554
+ ['!=', ['get', 'ramp'], 1],
555
+ ['==', ['get', 'brunnel'], 'tunnel']
556
+ ]
557
+ },
558
+ {
559
+ 'id': 'tunnel_mot_case',
560
+ 'type': 'line',
561
+ 'source': 'openmaptiles',
562
+ 'source-layer': 'transportation',
563
+ 'minzoom': 5,
564
+ 'maxzoom': 24,
565
+ 'layout': {
566
+ 'line-cap': 'butt',
567
+ 'line-join': 'round'
568
+ },
569
+ 'paint': {
570
+ 'line-color': dark ? 'rgb(0, 0, 0)' : 'rgb(163, 163, 152)',
571
+ 'line-width': [
572
+ 'interpolate',
573
+ ['linear'],
574
+ ['zoom'],
575
+ 6,
576
+ 0.5,
577
+ 7,
578
+ 0.8,
579
+ 8,
580
+ 1,
581
+ 11,
582
+ 3,
583
+ 12,
584
+ 4,
585
+ 13,
586
+ 5,
587
+ 14,
588
+ 7,
589
+ 15,
590
+ 9,
591
+ 16,
592
+ 11,
593
+ 17,
594
+ 13,
595
+ 18,
596
+ 22
597
+ ],
598
+ 'line-opacity': ['interpolate', ['linear'], ['zoom'], 6, 0.5, 7, 1]
599
+ },
600
+ 'filter': [
601
+ 'all',
602
+ ['==', ['get', 'class'], 'motorway'],
603
+ ['!=', ['get', 'ramp'], 1],
604
+ ['==', ['get', 'brunnel'], 'tunnel']
605
+ ]
606
+ },
607
+ {
608
+ 'id': 'tunnel_path',
609
+ 'type': 'line',
610
+ 'source': 'openmaptiles',
611
+ 'source-layer': 'transportation',
612
+ 'minzoom': 15,
613
+ 'maxzoom': 24,
614
+ 'layout': {
615
+ 'line-cap': 'round',
616
+ 'line-join': 'round'
617
+ },
618
+ 'paint': {
619
+ 'line-color': dark ? 'rgb(80, 80, 80)' : 'rgb(210, 209, 209)',
620
+ 'line-width': ['interpolate', ['linear'], ['zoom'], 15, 0.5, 16, 1, 18, 3],
621
+ 'line-opacity': 1
622
+ },
623
+ 'filter': ['all', ['==', ['get', 'class'], 'path'], ['==', ['get', 'brunnel'], 'tunnel']]
624
+ },
625
+ {
626
+ 'id': 'tunnel_service_fill',
627
+ 'type': 'line',
628
+ 'source': 'openmaptiles',
629
+ 'source-layer': 'transportation',
630
+ 'minzoom': 15,
631
+ 'maxzoom': 24,
632
+ 'layout': {
633
+ 'line-cap': 'round',
634
+ 'line-join': 'round'
635
+ },
636
+ 'paint': {
637
+ 'line-color': dark ? 'rgb(0, 0, 0)' : 'rgb(163, 163, 152)',
638
+ 'line-width': ['interpolate', ['linear'], ['zoom'], 15, 2, 16, 2, 17, 4, 18, 6],
639
+ 'line-opacity': 1
640
+ },
641
+ 'filter': ['all', ['==', ['get', 'class'], 'service'], ['==', ['get', 'brunnel'], 'tunnel']]
642
+ },
643
+ {
644
+ 'id': 'tunnel_minor_fill',
645
+ 'type': 'line',
646
+ 'source': 'openmaptiles',
647
+ 'source-layer': 'transportation',
648
+ 'minzoom': 15,
649
+ 'maxzoom': 24,
650
+ 'layout': {
651
+ 'line-cap': 'butt',
652
+ 'line-join': 'round'
653
+ },
654
+ 'paint': {
655
+ 'line-color': dark ? 'rgb(0, 0, 0)' : 'rgb(163, 163, 152)',
656
+ 'line-width': ['interpolate', ['linear'], ['zoom'], 15, 3, 16, 4, 17, 8, 18, 12],
657
+ 'line-opacity': 1
658
+ },
659
+ 'filter': ['all', ['==', ['get', 'class'], 'minor'], ['==', ['get', 'brunnel'], 'tunnel']]
660
+ },
661
+ {
662
+ 'id': 'tunnel_sec_fill',
663
+ 'type': 'line',
664
+ 'source': 'openmaptiles',
665
+ 'source-layer': 'transportation',
666
+ 'minzoom': 13,
667
+ 'maxzoom': 24,
668
+ 'layout': {
669
+ 'line-cap': 'round',
670
+ 'line-join': 'round'
671
+ },
672
+ 'paint': {
673
+ 'line-color': dark ? 'rgb(0, 0, 0)' : 'rgb(163, 163, 152)',
674
+ 'line-width': [
675
+ 'interpolate',
676
+ ['linear'],
677
+ ['zoom'],
678
+ 11,
679
+ 2,
680
+ 13,
681
+ 2,
682
+ 14,
683
+ 3,
684
+ 15,
685
+ 4,
686
+ 16,
687
+ 6,
688
+ 17,
689
+ 10,
690
+ 18,
691
+ 14
692
+ ],
693
+ 'line-opacity': 1
694
+ },
695
+ 'filter': [
696
+ 'all',
697
+ ['in', ['get', 'class'], ['literal', ['secondary', 'tertiary']]],
698
+ ['==', ['get', 'brunnel'], 'tunnel']
699
+ ]
700
+ },
701
+ {
702
+ 'id': 'tunnel_pri_fill',
703
+ 'type': 'line',
704
+ 'source': 'openmaptiles',
705
+ 'source-layer': 'transportation',
706
+ 'minzoom': 11,
707
+ 'maxzoom': 24,
708
+ 'layout': {
709
+ 'line-cap': 'butt',
710
+ 'line-join': 'round'
711
+ },
712
+ 'paint': {
713
+ 'line-color': dark ? 'rgb(0, 0, 0)' : 'rgb(163, 163, 152)',
714
+ 'line-width': [
715
+ 'interpolate',
716
+ ['linear'],
717
+ ['zoom'],
718
+ 11,
719
+ 1,
720
+ 13,
721
+ 2,
722
+ 14,
723
+ 4,
724
+ 15,
725
+ 6,
726
+ 16,
727
+ 8,
728
+ 17,
729
+ 12,
730
+ 18,
731
+ 16
732
+ ],
733
+ 'line-opacity': 1
734
+ },
735
+ 'filter': [
736
+ 'all',
737
+ ['==', ['get', 'class'], 'primary'],
738
+ ['!=', ['get', 'ramp'], 1],
739
+ ['==', ['get', 'brunnel'], 'tunnel']
740
+ ]
741
+ },
742
+ {
743
+ 'id': 'tunnel_trunk_fill',
744
+ 'type': 'line',
745
+ 'source': 'openmaptiles',
746
+ 'source-layer': 'transportation',
747
+ 'minzoom': 11,
748
+ 'maxzoom': 24,
749
+ 'layout': {
750
+ 'line-cap': 'round',
751
+ 'line-join': 'round',
752
+ 'visibility': 'visible'
753
+ },
754
+ 'paint': {
755
+ 'line-color': dark ? 'rgb(0, 0, 0)' : 'rgb(163, 163, 152)',
756
+ 'line-width': [
757
+ 'interpolate',
758
+ ['linear'],
759
+ ['zoom'],
760
+ 11,
761
+ 1,
762
+ 13,
763
+ 2,
764
+ 14,
765
+ 4,
766
+ 15,
767
+ 6,
768
+ 16,
769
+ 8,
770
+ 17,
771
+ 12,
772
+ 18,
773
+ 16
774
+ ],
775
+ 'line-opacity': 1
776
+ },
777
+ 'filter': [
778
+ 'all',
779
+ ['==', ['get', 'class'], 'trunk'],
780
+ ['!=', ['get', 'ramp'], 1],
781
+ ['==', ['get', 'brunnel'], 'tunnel']
782
+ ]
783
+ },
784
+ {
785
+ 'id': 'tunnel_mot_fill',
786
+ 'type': 'line',
787
+ 'source': 'openmaptiles',
788
+ 'source-layer': 'transportation',
789
+ 'minzoom': 10,
790
+ 'maxzoom': 24,
791
+ 'layout': {
792
+ 'line-cap': 'butt',
793
+ 'line-join': 'round'
794
+ },
795
+ 'paint': {
796
+ 'line-color': dark ? 'rgb(0, 0, 0)' : 'rgb(163, 163, 152)',
797
+ 'line-width': [
798
+ 'interpolate',
799
+ ['linear'],
800
+ ['zoom'],
801
+ 10,
802
+ 1,
803
+ 12,
804
+ 2,
805
+ 13,
806
+ 3,
807
+ 14,
808
+ 5,
809
+ 15,
810
+ 7,
811
+ 16,
812
+ 9,
813
+ 17,
814
+ 11,
815
+ 18,
816
+ 20
817
+ ],
818
+ 'line-opacity': 1
819
+ },
820
+ 'filter': [
821
+ 'all',
822
+ ['==', ['get', 'class'], 'motorway'],
823
+ ['!=', ['get', 'ramp'], 1],
824
+ ['==', ['get', 'brunnel'], 'tunnel']
825
+ ]
826
+ },
827
+ {
828
+ 'id': 'tunnel_rail',
829
+ 'type': 'line',
830
+ 'source': 'openmaptiles',
831
+ 'source-layer': 'transportation',
832
+ 'minzoom': 13,
833
+ 'layout': {
834
+ 'line-join': 'round',
835
+ 'visibility': 'visible'
836
+ },
837
+ 'paint': {
838
+ 'line-color': dark ? 'rgb(86, 86, 86)' : 'rgb(216, 215, 215)',
839
+ 'line-width': [
840
+ 'interpolate',
841
+ ['exponential', 1.3],
842
+ ['zoom'],
843
+ 13,
844
+ 0.5,
845
+ 14,
846
+ 1,
847
+ 15,
848
+ 1,
849
+ 16,
850
+ 3,
851
+ 21,
852
+ 7
853
+ ],
854
+ 'line-opacity': 0.5
855
+ },
856
+ 'filter': ['all', ['==', ['get', 'class'], 'rail'], ['==', ['get', 'brunnel'], 'tunnel']]
857
+ },
858
+ {
859
+ 'id': 'tunnel_rail_dash',
860
+ 'type': 'line',
861
+ 'source': 'openmaptiles',
862
+ 'source-layer': 'transportation',
863
+ 'minzoom': 15,
864
+ 'layout': {
865
+ 'line-join': 'round',
866
+ 'visibility': 'visible'
867
+ },
868
+ 'paint': {
869
+ 'line-color': dark ? 'rgb(120, 120, 120)' : 'rgb(250, 249, 249)',
870
+ 'line-width': ['interpolate', ['exponential', 1.3], ['zoom'], 15, 0.5, 16, 1, 20, 5],
871
+ 'line-opacity': 0.5
872
+ },
873
+ 'filter': ['all', ['==', ['get', 'class'], 'rail'], ['==', ['get', 'brunnel'], 'tunnel']]
874
+ },
875
+ {
876
+ 'id': 'road_area_pier',
877
+ 'type': 'fill',
878
+ 'source': 'openmaptiles',
879
+ 'source-layer': 'transportation',
880
+ 'layout': {
881
+ 'visibility': 'visible'
882
+ },
883
+ 'paint': {
884
+ 'fill-color': dark ? '#fbf8f3' : '#fbf8f3',
885
+ 'fill-antialias': true
886
+ },
887
+ 'metadata': {},
888
+ 'filter': ['all', ['==', ['geometry-type'], 'Polygon'], ['==', ['get', 'class'], 'pier']]
889
+ },
890
+ {
891
+ 'id': 'road_pier',
892
+ 'type': 'line',
893
+ 'source': 'openmaptiles',
894
+ 'source-layer': 'transportation',
895
+ 'layout': {
896
+ 'line-cap': 'round',
897
+ 'line-join': 'round'
898
+ },
899
+ 'paint': {
900
+ 'line-color': dark ? '#fbf8f3' : '#fbf8f3',
901
+ 'line-width': ['interpolate', ['exponential', 1.2], ['zoom'], 15, 1, 17, 4]
902
+ },
903
+ 'metadata': {},
904
+ 'filter': [
905
+ 'all',
906
+ ['==', ['geometry-type'], 'LineString'],
907
+ ['in', ['get', 'class'], ['literal', ['pier']]]
908
+ ]
909
+ },
910
+ {
911
+ 'id': 'road_area_bridge',
912
+ 'type': 'fill',
913
+ 'source': 'openmaptiles',
914
+ 'source-layer': 'transportation',
915
+ 'layout': {
916
+ 'visibility': 'visible'
917
+ },
918
+ 'paint': {
919
+ 'fill-color': dark ? 'rgba(246, 241, 229, 0.6)' : 'rgba(246, 241, 229, 0.6)',
920
+ 'fill-antialias': true
921
+ },
922
+ 'metadata': {},
923
+ 'filter': ['all', ['==', ['geometry-type'], 'Polygon'], ['==', ['get', 'brunnel'], 'bridge']]
924
+ },
925
+ {
926
+ 'id': 'road_service_case',
927
+ 'type': 'line',
928
+ 'source': 'openmaptiles',
929
+ 'source-layer': 'transportation',
930
+ 'minzoom': 15,
931
+ 'maxzoom': 24,
932
+ 'layout': {
933
+ 'line-cap': 'round',
934
+ 'line-join': 'round'
935
+ },
936
+ 'paint': {
937
+ 'line-color': dark ? 'rgb(0, 0, 40)' : 'rgb(217, 217, 211)',
938
+ 'line-width': ['interpolate', ['linear'], ['zoom'], 15, 1, 16, 3, 17, 6, 18, 8],
939
+ 'line-opacity': 1
940
+ },
941
+ 'filter': ['all', ['==', ['get', 'class'], 'service'], ['!', ['has', 'brunnel']]]
942
+ },
943
+ {
944
+ 'id': 'road_minor_case',
945
+ 'type': 'line',
946
+ 'source': 'openmaptiles',
947
+ 'source-layer': 'transportation',
948
+ 'minzoom': 13,
949
+ 'maxzoom': 24,
950
+ 'layout': {
951
+ 'line-cap': 'round',
952
+ 'line-join': 'round'
953
+ },
954
+ 'paint': {
955
+ 'line-color': dark ? 'rgb(0, 0, 40)' : 'rgb(217, 217, 211)',
956
+ 'line-width': [
957
+ 'interpolate',
958
+ ['linear'],
959
+ ['zoom'],
960
+ 11,
961
+ 0.5,
962
+ 12,
963
+ 0.5,
964
+ 14,
965
+ 2,
966
+ 15,
967
+ 3,
968
+ 16,
969
+ 4.3,
970
+ 17,
971
+ 10,
972
+ 18,
973
+ 14
974
+ ],
975
+ 'line-opacity': 1
976
+ },
977
+ 'filter': ['all', ['==', ['get', 'class'], 'minor'], ['!', ['has', 'brunnel']]]
978
+ },
979
+ {
980
+ 'id': 'road_pri_case_ramp',
981
+ 'type': 'line',
982
+ 'source': 'openmaptiles',
983
+ 'source-layer': 'transportation',
984
+ 'minzoom': 12,
985
+ 'maxzoom': 24,
986
+ 'layout': {
987
+ 'line-cap': 'round',
988
+ 'line-join': 'round'
989
+ },
990
+ 'paint': {
991
+ 'line-color': dark ? 'rgb(0, 0, 40)' : 'rgb(217, 217, 211)',
992
+ 'line-width': [
993
+ 'interpolate',
994
+ ['linear'],
995
+ ['zoom'],
996
+ 12,
997
+ 2,
998
+ 13,
999
+ 3,
1000
+ 14,
1001
+ 4,
1002
+ 15,
1003
+ 5,
1004
+ 16,
1005
+ 8,
1006
+ 17,
1007
+ 10
1008
+ ],
1009
+ 'line-opacity': ['interpolate', ['linear'], ['zoom'], 5, 0.5, 7, 1]
1010
+ },
1011
+ 'filter': ['all', ['==', ['get', 'class'], 'primary'], ['==', ['get', 'ramp'], 1]]
1012
+ },
1013
+ {
1014
+ 'id': 'road_trunk_case_ramp',
1015
+ 'type': 'line',
1016
+ 'source': 'openmaptiles',
1017
+ 'source-layer': 'transportation',
1018
+ 'minzoom': 12,
1019
+ 'maxzoom': 24,
1020
+ 'layout': {
1021
+ 'line-cap': 'round',
1022
+ 'line-join': 'round'
1023
+ },
1024
+ 'paint': {
1025
+ 'line-color': dark ? 'rgb(0, 0, 40)' : 'rgb(217, 217, 211)',
1026
+ 'line-width': [
1027
+ 'interpolate',
1028
+ ['linear'],
1029
+ ['zoom'],
1030
+ 12,
1031
+ 2,
1032
+ 13,
1033
+ 3,
1034
+ 14,
1035
+ 4,
1036
+ 15,
1037
+ 5,
1038
+ 16,
1039
+ 8,
1040
+ 17,
1041
+ 10
1042
+ ],
1043
+ 'line-opacity': 1
1044
+ },
1045
+ 'filter': ['all', ['==', ['get', 'class'], 'trunk'], ['==', ['get', 'ramp'], 1]]
1046
+ },
1047
+ {
1048
+ 'id': 'road_mot_case_ramp',
1049
+ 'type': 'line',
1050
+ 'source': 'openmaptiles',
1051
+ 'source-layer': 'transportation',
1052
+ 'minzoom': 12,
1053
+ 'maxzoom': 24,
1054
+ 'layout': {
1055
+ 'line-cap': 'round',
1056
+ 'line-join': 'round'
1057
+ },
1058
+ 'paint': {
1059
+ 'line-color': dark ? 'rgb(0, 0, 40)' : 'rgb(217, 217, 211)',
1060
+ 'line-width': [
1061
+ 'interpolate',
1062
+ ['linear'],
1063
+ ['zoom'],
1064
+ 12,
1065
+ 2,
1066
+ 13,
1067
+ 3,
1068
+ 14,
1069
+ 4,
1070
+ 15,
1071
+ 5,
1072
+ 16,
1073
+ 8,
1074
+ 17,
1075
+ 10
1076
+ ],
1077
+ 'line-opacity': 1
1078
+ },
1079
+ 'filter': ['all', ['==', ['get', 'class'], 'motorway'], ['==', ['get', 'ramp'], 1]]
1080
+ },
1081
+ {
1082
+ 'id': 'road_sec_case_noramp',
1083
+ 'type': 'line',
1084
+ 'source': 'openmaptiles',
1085
+ 'source-layer': 'transportation',
1086
+ 'minzoom': 11,
1087
+ 'maxzoom': 24,
1088
+ 'layout': {
1089
+ 'line-cap': 'round',
1090
+ 'line-join': 'round'
1091
+ },
1092
+ 'paint': {
1093
+ 'line-color': dark ? 'rgb(0, 0, 40)' : 'rgb(217, 217, 211)',
1094
+ 'line-width': [
1095
+ 'interpolate',
1096
+ ['linear'],
1097
+ ['zoom'],
1098
+ 11,
1099
+ 0.5,
1100
+ 12,
1101
+ 1.5,
1102
+ 13,
1103
+ 3,
1104
+ 14,
1105
+ 5,
1106
+ 15,
1107
+ 6,
1108
+ 16,
1109
+ 8,
1110
+ 17,
1111
+ 12,
1112
+ 18,
1113
+ 16
1114
+ ],
1115
+ 'line-opacity': 1
1116
+ },
1117
+ 'filter': [
1118
+ 'all',
1119
+ ['in', ['get', 'class'], ['literal', ['secondary', 'tertiary']]],
1120
+ ['!', ['has', 'brunnel']]
1121
+ ]
1122
+ },
1123
+ {
1124
+ 'id': 'road_pri_case_noramp',
1125
+ 'type': 'line',
1126
+ 'source': 'openmaptiles',
1127
+ 'source-layer': 'transportation',
1128
+ 'minzoom': 7,
1129
+ 'maxzoom': 24,
1130
+ 'layout': {
1131
+ 'line-cap': 'round',
1132
+ 'line-join': 'round'
1133
+ },
1134
+ 'paint': {
1135
+ 'line-color': dark ? 'rgb(0, 0, 40)' : 'rgb(217, 217, 211)',
1136
+ 'line-width': [
1137
+ 'interpolate',
1138
+ ['linear'],
1139
+ ['zoom'],
1140
+ 6,
1141
+ 0.5,
1142
+ 7,
1143
+ 0.8,
1144
+ 8,
1145
+ 1,
1146
+ 11,
1147
+ 3,
1148
+ 13,
1149
+ 4,
1150
+ 14,
1151
+ 6,
1152
+ 15,
1153
+ 8,
1154
+ 16,
1155
+ 10,
1156
+ 17,
1157
+ 14,
1158
+ 18,
1159
+ 18
1160
+ ],
1161
+ 'line-opacity': ['interpolate', ['linear'], ['zoom'], 5, 0.5, 7, 1]
1162
+ },
1163
+ 'filter': [
1164
+ 'all',
1165
+ ['==', ['get', 'class'], 'primary'],
1166
+ ['!=', ['get', 'ramp'], 1],
1167
+ ['!', ['has', 'brunnel']]
1168
+ ]
1169
+ },
1170
+ {
1171
+ 'id': 'road_trunk_case_noramp',
1172
+ 'type': 'line',
1173
+ 'source': 'openmaptiles',
1174
+ 'source-layer': 'transportation',
1175
+ 'minzoom': 5,
1176
+ 'maxzoom': 24,
1177
+ 'layout': {
1178
+ 'line-cap': 'round',
1179
+ 'line-join': 'round'
1180
+ },
1181
+ 'paint': {
1182
+ 'line-color': dark ? 'rgb(0, 0, 40)' : 'rgb(217, 217, 211)',
1183
+ 'line-width': [
1184
+ 'interpolate',
1185
+ ['linear'],
1186
+ ['zoom'],
1187
+ 6,
1188
+ 0.5,
1189
+ 7,
1190
+ 0.8,
1191
+ 8,
1192
+ 1,
1193
+ 11,
1194
+ 3,
1195
+ 13,
1196
+ 4,
1197
+ 14,
1198
+ 6,
1199
+ 15,
1200
+ 8,
1201
+ 16,
1202
+ 10,
1203
+ 17,
1204
+ 14,
1205
+ 18,
1206
+ 18
1207
+ ],
1208
+ 'line-opacity': ['interpolate', ['linear'], ['zoom'], 5, 0.5, 7, 1]
1209
+ },
1210
+ 'filter': [
1211
+ 'all',
1212
+ ['==', ['get', 'class'], 'trunk'],
1213
+ ['!=', ['get', 'ramp'], 1],
1214
+ ['!', ['has', 'brunnel']]
1215
+ ]
1216
+ },
1217
+ {
1218
+ 'id': 'road_mot_case_noramp',
1219
+ 'type': 'line',
1220
+ 'source': 'openmaptiles',
1221
+ 'source-layer': 'transportation',
1222
+ 'minzoom': 5,
1223
+ 'maxzoom': 24,
1224
+ 'layout': {
1225
+ 'line-cap': 'round',
1226
+ 'line-join': 'round'
1227
+ },
1228
+ 'paint': {
1229
+ 'line-color': dark ? 'rgb(0, 0, 40)' : 'rgb(217, 217, 211)',
1230
+ 'line-width': [
1231
+ 'interpolate',
1232
+ ['linear'],
1233
+ ['zoom'],
1234
+ 6,
1235
+ 0.5,
1236
+ 7,
1237
+ 0.7,
1238
+ 8,
1239
+ 0.8,
1240
+ 11,
1241
+ 3,
1242
+ 12,
1243
+ 4,
1244
+ 13,
1245
+ 5,
1246
+ 14,
1247
+ 7,
1248
+ 15,
1249
+ 9,
1250
+ 16,
1251
+ 11,
1252
+ 17,
1253
+ 13,
1254
+ 18,
1255
+ 22
1256
+ ],
1257
+ 'line-opacity': ['interpolate', ['linear'], ['zoom'], 6, 0.5, 7, 1]
1258
+ },
1259
+ 'filter': [
1260
+ 'all',
1261
+ ['==', ['get', 'class'], 'motorway'],
1262
+ ['!=', ['get', 'ramp'], 1],
1263
+ ['!', ['has', 'brunnel']]
1264
+ ]
1265
+ },
1266
+ {
1267
+ 'id': 'road_path',
1268
+ 'type': 'line',
1269
+ 'source': 'openmaptiles',
1270
+ 'source-layer': 'transportation',
1271
+ 'minzoom': 15,
1272
+ 'maxzoom': 24,
1273
+ 'layout': {
1274
+ 'line-cap': 'round',
1275
+ 'line-join': 'round'
1276
+ },
1277
+ 'paint': {
1278
+ 'line-color': dark ? 'rgb(80, 80, 80)' : 'rgb(210, 209, 209)',
1279
+ 'line-width': ['interpolate', ['linear'], ['zoom'], 15, 0.5, 16, 1, 18, 3],
1280
+ 'line-opacity': 1
1281
+ },
1282
+ 'filter': [
1283
+ 'all',
1284
+ ['in', ['get', 'class'], ['literal', ['path', 'track']]],
1285
+ ['!', ['has', 'brunnel']]
1286
+ ]
1287
+ },
1288
+ {
1289
+ 'id': 'road_service_fill',
1290
+ 'type': 'line',
1291
+ 'source': 'openmaptiles',
1292
+ 'source-layer': 'transportation',
1293
+ 'minzoom': 15,
1294
+ 'maxzoom': 24,
1295
+ 'layout': {
1296
+ 'line-cap': 'round',
1297
+ 'line-join': 'round'
1298
+ },
1299
+ 'paint': {
1300
+ 'line-color': dark ? 'rgba(0, 0, 40)' : 'rgb(217, 217, 211)',
1301
+ 'line-width': ['interpolate', ['linear'], ['zoom'], 15, 2, 16, 2, 17, 4, 18, 6],
1302
+ 'line-opacity': 1
1303
+ },
1304
+ 'filter': ['all', ['==', ['get', 'class'], 'service'], ['!', ['has', 'brunnel']]]
1305
+ },
1306
+ {
1307
+ 'id': 'road_minor_fill',
1308
+ 'type': 'line',
1309
+ 'source': 'openmaptiles',
1310
+ 'source-layer': 'transportation',
1311
+ 'minzoom': 15,
1312
+ 'maxzoom': 24,
1313
+ 'layout': {
1314
+ 'line-cap': 'round',
1315
+ 'line-join': 'round'
1316
+ },
1317
+ 'paint': {
1318
+ 'line-color': dark ? 'rgb(0, 0, 40)' : 'rgb(217, 217, 211)',
1319
+ 'line-width': ['interpolate', ['linear'], ['zoom'], 15, 3, 16, 4, 17, 8, 18, 12],
1320
+ 'line-opacity': 1
1321
+ },
1322
+ 'filter': ['all', ['==', ['get', 'class'], 'minor'], ['!', ['has', 'brunnel']]]
1323
+ },
1324
+ {
1325
+ 'id': 'road_pri_fill_ramp',
1326
+ 'type': 'line',
1327
+ 'source': 'openmaptiles',
1328
+ 'source-layer': 'transportation',
1329
+ 'minzoom': 12,
1330
+ 'maxzoom': 24,
1331
+ 'layout': {
1332
+ 'line-cap': 'round',
1333
+ 'line-join': 'round'
1334
+ },
1335
+ 'paint': {
1336
+ 'line-color': dark ? 'rgb(0, 0, 40)' : 'rgb(217, 217, 211)',
1337
+ 'line-width': [
1338
+ 'interpolate',
1339
+ ['linear'],
1340
+ ['zoom'],
1341
+ 12,
1342
+ 1,
1343
+ 13,
1344
+ 1.5,
1345
+ 14,
1346
+ 2,
1347
+ 15,
1348
+ 3,
1349
+ 16,
1350
+ 6,
1351
+ 17,
1352
+ 8
1353
+ ],
1354
+ 'line-opacity': 1
1355
+ },
1356
+ 'filter': ['all', ['==', ['get', 'class'], 'primary'], ['==', ['get', 'ramp'], 1]]
1357
+ },
1358
+ {
1359
+ 'id': 'road_trunk_fill_ramp',
1360
+ 'type': 'line',
1361
+ 'source': 'openmaptiles',
1362
+ 'source-layer': 'transportation',
1363
+ 'minzoom': 12,
1364
+ 'maxzoom': 24,
1365
+ 'layout': {
1366
+ 'line-cap': 'square',
1367
+ 'line-join': 'round'
1368
+ },
1369
+ 'paint': {
1370
+ 'line-color': dark ? 'rgb(0, 0, 40)' : 'rgb(217, 217, 211)',
1371
+ 'line-width': [
1372
+ 'interpolate',
1373
+ ['linear'],
1374
+ ['zoom'],
1375
+ 12,
1376
+ 1,
1377
+ 13,
1378
+ 1.5,
1379
+ 14,
1380
+ 2,
1381
+ 15,
1382
+ 3,
1383
+ 16,
1384
+ 6,
1385
+ 17,
1386
+ 8
1387
+ ],
1388
+ 'line-opacity': 1
1389
+ },
1390
+ 'filter': ['all', ['==', ['get', 'class'], 'trunk'], ['==', ['get', 'ramp'], 1]]
1391
+ },
1392
+ {
1393
+ 'id': 'road_mot_fill_ramp',
1394
+ 'type': 'line',
1395
+ 'source': 'openmaptiles',
1396
+ 'source-layer': 'transportation',
1397
+ 'minzoom': 12,
1398
+ 'maxzoom': 24,
1399
+ 'layout': {
1400
+ 'line-cap': 'round',
1401
+ 'line-join': 'round'
1402
+ },
1403
+ 'paint': {
1404
+ 'line-color': dark ? 'rgb(0, 0, 40)' : 'rgb(217, 217, 211)',
1405
+ 'line-width': [
1406
+ 'interpolate',
1407
+ ['linear'],
1408
+ ['zoom'],
1409
+ 12,
1410
+ 1,
1411
+ 13,
1412
+ 1.5,
1413
+ 14,
1414
+ 2,
1415
+ 15,
1416
+ 3,
1417
+ 16,
1418
+ 6,
1419
+ 17,
1420
+ 8
1421
+ ],
1422
+ 'line-opacity': 1
1423
+ },
1424
+ 'filter': ['all', ['==', ['get', 'class'], 'motorway'], ['==', ['get', 'ramp'], 1]]
1425
+ },
1426
+ {
1427
+ 'id': 'road_sec_fill_noramp',
1428
+ 'type': 'line',
1429
+ 'source': 'openmaptiles',
1430
+ 'source-layer': 'transportation',
1431
+ 'minzoom': 13,
1432
+ 'maxzoom': 24,
1433
+ 'layout': {
1434
+ 'line-cap': 'round',
1435
+ 'line-join': 'round'
1436
+ },
1437
+ 'paint': {
1438
+ 'line-color': dark ? 'rgb(0, 0, 40)' : 'rgb(217, 217, 211)',
1439
+ 'line-width': [
1440
+ 'interpolate',
1441
+ ['linear'],
1442
+ ['zoom'],
1443
+ 11,
1444
+ 2,
1445
+ 13,
1446
+ 2,
1447
+ 14,
1448
+ 3,
1449
+ 15,
1450
+ 4,
1451
+ 16,
1452
+ 6,
1453
+ 17,
1454
+ 10,
1455
+ 18,
1456
+ 14
1457
+ ],
1458
+ 'line-opacity': 1
1459
+ },
1460
+ 'filter': [
1461
+ 'all',
1462
+ ['in', ['get', 'class'], ['literal', ['secondary', 'tertiary']]],
1463
+ ['!', ['has', 'brunnel']]
1464
+ ]
1465
+ },
1466
+ {
1467
+ 'id': 'road_pri_fill_noramp',
1468
+ 'type': 'line',
1469
+ 'source': 'openmaptiles',
1470
+ 'source-layer': 'transportation',
1471
+ 'minzoom': 10,
1472
+ 'maxzoom': 24,
1473
+ 'layout': {
1474
+ 'line-cap': 'round',
1475
+ 'line-join': 'round'
1476
+ },
1477
+ 'paint': {
1478
+ 'line-color': dark ? 'rgb(0, 0, 40)' : 'rgb(217, 217, 211)',
1479
+ 'line-width': [
1480
+ 'interpolate',
1481
+ ['linear'],
1482
+ ['zoom'],
1483
+ 10,
1484
+ 0.3,
1485
+ 13,
1486
+ 2,
1487
+ 14,
1488
+ 4,
1489
+ 15,
1490
+ 6,
1491
+ 16,
1492
+ 8,
1493
+ 17,
1494
+ 12,
1495
+ 18,
1496
+ 16
1497
+ ],
1498
+ 'line-opacity': 1
1499
+ },
1500
+ 'filter': [
1501
+ 'all',
1502
+ ['==', ['get', 'class'], 'primary'],
1503
+ ['!=', ['get', 'ramp'], 1],
1504
+ ['!', ['has', 'brunnel']]
1505
+ ]
1506
+ },
1507
+ {
1508
+ 'id': 'road_trunk_fill_noramp',
1509
+ 'type': 'line',
1510
+ 'source': 'openmaptiles',
1511
+ 'source-layer': 'transportation',
1512
+ 'minzoom': 10,
1513
+ 'maxzoom': 24,
1514
+ 'layout': {
1515
+ 'line-cap': 'round',
1516
+ 'line-join': 'round'
1517
+ },
1518
+ 'paint': {
1519
+ 'line-color': dark ? 'rgb(0, 0, 40)' : 'rgb(217, 217, 211)',
1520
+ 'line-width': [
1521
+ 'interpolate',
1522
+ ['linear'],
1523
+ ['zoom'],
1524
+ 11,
1525
+ 1,
1526
+ 13,
1527
+ 2,
1528
+ 14,
1529
+ 4,
1530
+ 15,
1531
+ 6,
1532
+ 16,
1533
+ 8,
1534
+ 17,
1535
+ 12,
1536
+ 18,
1537
+ 16
1538
+ ],
1539
+ 'line-opacity': 1
1540
+ },
1541
+ 'filter': [
1542
+ 'all',
1543
+ ['==', ['get', 'class'], 'trunk'],
1544
+ ['!=', ['get', 'ramp'], 1],
1545
+ ['!', ['has', 'brunnel']]
1546
+ ]
1547
+ },
1548
+ {
1549
+ 'id': 'road_mot_fill_noramp',
1550
+ 'type': 'line',
1551
+ 'source': 'openmaptiles',
1552
+ 'source-layer': 'transportation',
1553
+ 'minzoom': 10,
1554
+ 'maxzoom': 24,
1555
+ 'layout': {
1556
+ 'line-cap': 'round',
1557
+ 'line-join': 'round'
1558
+ },
1559
+ 'paint': {
1560
+ 'line-color': dark ? 'rgb(0, 0, 40)' : 'rgb(217, 217, 211)',
1561
+ 'line-width': [
1562
+ 'interpolate',
1563
+ ['linear'],
1564
+ ['zoom'],
1565
+ 10,
1566
+ 1,
1567
+ 12,
1568
+ 2,
1569
+ 13,
1570
+ 3,
1571
+ 14,
1572
+ 5,
1573
+ 15,
1574
+ 7,
1575
+ 16,
1576
+ 9,
1577
+ 17,
1578
+ 11,
1579
+ 18,
1580
+ 20
1581
+ ],
1582
+ 'line-opacity': 1
1583
+ },
1584
+ 'filter': [
1585
+ 'all',
1586
+ ['==', ['get', 'class'], 'motorway'],
1587
+ ['!=', ['get', 'ramp'], 1],
1588
+ ['!', ['has', 'brunnel']]
1589
+ ]
1590
+ },
1591
+ {
1592
+ 'id': 'rail',
1593
+ 'type': 'line',
1594
+ 'source': 'openmaptiles',
1595
+ 'source-layer': 'transportation',
1596
+ 'minzoom': 13,
1597
+ 'layout': {
1598
+ 'line-join': 'round',
1599
+ 'visibility': 'visible'
1600
+ },
1601
+ 'paint': {
1602
+ 'line-color': dark ? 'rgb(153, 153, 169)' : 'rgb(153, 153, 169)',
1603
+ 'line-width': [
1604
+ 'interpolate',
1605
+ ['exponential', 1.3],
1606
+ ['zoom'],
1607
+ 13,
1608
+ 0.5,
1609
+ 14,
1610
+ 1,
1611
+ 15,
1612
+ 1,
1613
+ 16,
1614
+ 3,
1615
+ 21,
1616
+ 7
1617
+ ]
1618
+ },
1619
+ 'filter': ['all', ['==', ['get', 'class'], 'rail'], ['!=', ['get', 'brunnel'], 'tunnel']]
1620
+ },
1621
+ {
1622
+ 'id': 'rail_dash',
1623
+ 'type': 'line',
1624
+ 'source': 'openmaptiles',
1625
+ 'source-layer': 'transportation',
1626
+ 'minzoom': 15,
1627
+ 'layout': {
1628
+ 'line-join': 'round',
1629
+ 'visibility': 'visible'
1630
+ },
1631
+ 'paint': {
1632
+ 'line-color': dark ? 'rgb(120, 120, 120)' : 'rgb(250, 249, 249)',
1633
+ 'line-width': ['interpolate', ['exponential', 1.3], ['zoom'], 15, 0.5, 16, 1, 20, 5]
1634
+ },
1635
+ 'filter': ['all', ['==', ['get', 'class'], 'rail'], ['!=', ['get', 'brunnel'], 'tunnel']]
1636
+ },
1637
+ {
1638
+ 'id': 'bridge_service_case',
1639
+ 'type': 'line',
1640
+ 'source': 'openmaptiles',
1641
+ 'source-layer': 'transportation',
1642
+ 'minzoom': 15,
1643
+ 'maxzoom': 24,
1644
+ 'layout': {
1645
+ 'line-cap': 'butt',
1646
+ 'line-join': 'round'
1647
+ },
1648
+ 'paint': {
1649
+ 'line-color': dark ? 'rgb(0, 0, 40)' : 'rgb(217, 217, 211)',
1650
+ 'line-width': ['interpolate', ['linear'], ['zoom'], 15, 1, 16, 3, 17, 6, 18, 8],
1651
+ 'line-opacity': 1
1652
+ },
1653
+ 'filter': ['all', ['==', ['get', 'class'], 'service'], ['==', ['get', 'brunnel'], 'bridge']]
1654
+ },
1655
+ {
1656
+ 'id': 'bridge_minor_case',
1657
+ 'type': 'line',
1658
+ 'source': 'openmaptiles',
1659
+ 'source-layer': 'transportation',
1660
+ 'minzoom': 13,
1661
+ 'maxzoom': 24,
1662
+ 'layout': {
1663
+ 'line-cap': 'butt',
1664
+ 'line-join': 'miter'
1665
+ },
1666
+ 'paint': {
1667
+ 'line-color': dark ? 'rgb(0, 0, 40)' : 'rgb(217, 217, 211)',
1668
+ 'line-width': [
1669
+ 'interpolate',
1670
+ ['linear'],
1671
+ ['zoom'],
1672
+ 11,
1673
+ 0.5,
1674
+ 12,
1675
+ 0.5,
1676
+ 14,
1677
+ 2,
1678
+ 15,
1679
+ 3,
1680
+ 16,
1681
+ 4.3,
1682
+ 17,
1683
+ 10,
1684
+ 18,
1685
+ 14
1686
+ ],
1687
+ 'line-opacity': 1
1688
+ },
1689
+ 'filter': ['all', ['==', ['get', 'class'], 'minor'], ['==', ['get', 'brunnel'], 'bridge']]
1690
+ },
1691
+ {
1692
+ 'id': 'bridge_sec_case',
1693
+ 'type': 'line',
1694
+ 'source': 'openmaptiles',
1695
+ 'source-layer': 'transportation',
1696
+ 'minzoom': 11,
1697
+ 'maxzoom': 24,
1698
+ 'layout': {
1699
+ 'line-cap': 'butt',
1700
+ 'line-join': 'miter'
1701
+ },
1702
+ 'paint': {
1703
+ 'line-color': dark ? 'rgb(0, 0, 40)' : 'rgb(217, 217, 211)',
1704
+ 'line-width': [
1705
+ 'interpolate',
1706
+ ['linear'],
1707
+ ['zoom'],
1708
+ 11,
1709
+ 0.5,
1710
+ 12,
1711
+ 1.5,
1712
+ 13,
1713
+ 3,
1714
+ 14,
1715
+ 5,
1716
+ 15,
1717
+ 6,
1718
+ 16,
1719
+ 8,
1720
+ 17,
1721
+ 12,
1722
+ 18,
1723
+ 16
1724
+ ],
1725
+ 'line-opacity': 1
1726
+ },
1727
+ 'filter': [
1728
+ 'all',
1729
+ ['in', ['get', 'class'], ['literal', ['secondary', 'tertiary']]],
1730
+ ['==', ['get', 'brunnel'], 'bridge']
1731
+ ]
1732
+ },
1733
+ {
1734
+ 'id': 'bridge_pri_case',
1735
+ 'type': 'line',
1736
+ 'source': 'openmaptiles',
1737
+ 'source-layer': 'transportation',
1738
+ 'minzoom': 8,
1739
+ 'maxzoom': 24,
1740
+ 'layout': {
1741
+ 'line-cap': 'butt',
1742
+ 'line-join': 'round'
1743
+ },
1744
+ 'paint': {
1745
+ 'line-color': dark ? 'rgb(0, 0, 40)' : 'rgb(217, 217, 211)',
1746
+ 'line-width': [
1747
+ 'interpolate',
1748
+ ['linear'],
1749
+ ['zoom'],
1750
+ 6,
1751
+ 0.5,
1752
+ 7,
1753
+ 0.8,
1754
+ 8,
1755
+ 1,
1756
+ 11,
1757
+ 3,
1758
+ 13,
1759
+ 4,
1760
+ 14,
1761
+ 6,
1762
+ 15,
1763
+ 8,
1764
+ 16,
1765
+ 10,
1766
+ 17,
1767
+ 14,
1768
+ 18,
1769
+ 18
1770
+ ],
1771
+ 'line-opacity': ['interpolate', ['linear'], ['zoom'], 5, 0.5, 7, 1]
1772
+ },
1773
+ 'filter': [
1774
+ 'all',
1775
+ ['==', ['get', 'class'], 'primary'],
1776
+ ['!=', ['get', 'ramp'], 1],
1777
+ ['==', ['get', 'brunnel'], 'bridge']
1778
+ ]
1779
+ },
1780
+ {
1781
+ 'id': 'bridge_trunk_case',
1782
+ 'type': 'line',
1783
+ 'source': 'openmaptiles',
1784
+ 'source-layer': 'transportation',
1785
+ 'minzoom': 5,
1786
+ 'maxzoom': 24,
1787
+ 'layout': {
1788
+ 'line-cap': 'butt',
1789
+ 'line-join': 'round',
1790
+ 'visibility': 'visible'
1791
+ },
1792
+ 'paint': {
1793
+ 'line-color': dark ? 'rgb(0, 0, 40)' : 'rgb(217, 217, 211)',
1794
+ 'line-width': [
1795
+ 'interpolate',
1796
+ ['linear'],
1797
+ ['zoom'],
1798
+ 6,
1799
+ 0.5,
1800
+ 7,
1801
+ 0.8,
1802
+ 8,
1803
+ 1,
1804
+ 11,
1805
+ 3,
1806
+ 13,
1807
+ 4,
1808
+ 14,
1809
+ 6,
1810
+ 15,
1811
+ 8,
1812
+ 16,
1813
+ 10,
1814
+ 17,
1815
+ 14,
1816
+ 18,
1817
+ 18
1818
+ ],
1819
+ 'line-opacity': ['interpolate', ['linear'], ['zoom'], 5, 0.5, 7, 1]
1820
+ },
1821
+ 'filter': [
1822
+ 'all',
1823
+ ['==', ['get', 'class'], 'trunk'],
1824
+ ['!=', ['get', 'ramp'], 1],
1825
+ ['==', ['get', 'brunnel'], 'bridge']
1826
+ ]
1827
+ },
1828
+ {
1829
+ 'id': 'bridge_mot_case',
1830
+ 'type': 'line',
1831
+ 'source': 'openmaptiles',
1832
+ 'source-layer': 'transportation',
1833
+ 'minzoom': 5,
1834
+ 'maxzoom': 24,
1835
+ 'layout': {
1836
+ 'line-cap': 'butt',
1837
+ 'line-join': 'round'
1838
+ },
1839
+ 'paint': {
1840
+ 'line-color': dark ? 'rgb(0, 0, 40)' : 'rgb(217, 217, 211)',
1841
+ 'line-width': [
1842
+ 'interpolate',
1843
+ ['linear'],
1844
+ ['zoom'],
1845
+ 6,
1846
+ 0.5,
1847
+ 7,
1848
+ 0.8,
1849
+ 8,
1850
+ 1,
1851
+ 11,
1852
+ 3,
1853
+ 12,
1854
+ 4,
1855
+ 13,
1856
+ 5,
1857
+ 14,
1858
+ 7,
1859
+ 15,
1860
+ 9,
1861
+ 16,
1862
+ 11,
1863
+ 17,
1864
+ 13,
1865
+ 18,
1866
+ 22
1867
+ ],
1868
+ 'line-opacity': ['interpolate', ['linear'], ['zoom'], 6, 0.5, 7, 1]
1869
+ },
1870
+ 'filter': [
1871
+ 'all',
1872
+ ['==', ['get', 'class'], 'motorway'],
1873
+ ['!=', ['get', 'ramp'], 1],
1874
+ ['==', ['get', 'brunnel'], 'bridge']
1875
+ ]
1876
+ },
1877
+ {
1878
+ 'id': 'bridge_path',
1879
+ 'type': 'line',
1880
+ 'source': 'openmaptiles',
1881
+ 'source-layer': 'transportation',
1882
+ 'minzoom': 15,
1883
+ 'maxzoom': 24,
1884
+ 'layout': {
1885
+ 'line-cap': 'round',
1886
+ 'line-join': 'round'
1887
+ },
1888
+ 'paint': {
1889
+ 'line-color': dark ? 'rgb(80, 80, 80)' : 'rgb(210, 209, 209)',
1890
+ 'line-width': ['interpolate', ['linear'], ['zoom'], 15, 0.5, 16, 1, 18, 3],
1891
+ 'line-opacity': 1
1892
+ },
1893
+ 'filter': ['all', ['==', ['get', 'class'], 'path'], ['==', ['get', 'brunnel'], 'bridge']]
1894
+ },
1895
+ {
1896
+ 'id': 'bridge_service_fill',
1897
+ 'type': 'line',
1898
+ 'source': 'openmaptiles',
1899
+ 'source-layer': 'transportation',
1900
+ 'minzoom': 15,
1901
+ 'maxzoom': 24,
1902
+ 'layout': {
1903
+ 'line-cap': 'round',
1904
+ 'line-join': 'round'
1905
+ },
1906
+ 'paint': {
1907
+ 'line-color': dark ? 'rgb(0, 0, 40)' : 'rgb(217, 217, 211)',
1908
+ 'line-width': ['interpolate', ['linear'], ['zoom'], 15, 2, 16, 2, 17, 4, 18, 6],
1909
+ 'line-opacity': 1
1910
+ },
1911
+ 'filter': ['all', ['==', ['get', 'class'], 'service'], ['==', ['get', 'brunnel'], 'bridge']]
1912
+ },
1913
+ {
1914
+ 'id': 'bridge_minor_fill',
1915
+ 'type': 'line',
1916
+ 'source': 'openmaptiles',
1917
+ 'source-layer': 'transportation',
1918
+ 'minzoom': 15,
1919
+ 'maxzoom': 24,
1920
+ 'layout': {
1921
+ 'line-cap': 'butt',
1922
+ 'line-join': 'round'
1923
+ },
1924
+ 'paint': {
1925
+ 'line-color': dark ? 'rgb(0, 0, 40)' : 'rgb(217, 217, 211)',
1926
+ 'line-width': ['interpolate', ['linear'], ['zoom'], 15, 3, 16, 4, 17, 8, 18, 12],
1927
+ 'line-opacity': 1
1928
+ },
1929
+ 'filter': ['all', ['==', ['get', 'class'], 'minor'], ['==', ['get', 'brunnel'], 'bridge']]
1930
+ },
1931
+ {
1932
+ 'id': 'bridge_sec_fill',
1933
+ 'type': 'line',
1934
+ 'source': 'openmaptiles',
1935
+ 'source-layer': 'transportation',
1936
+ 'minzoom': 13,
1937
+ 'maxzoom': 24,
1938
+ 'layout': {
1939
+ 'line-cap': 'round',
1940
+ 'line-join': 'round'
1941
+ },
1942
+ 'paint': {
1943
+ 'line-color': dark ? 'rgb(0, 0, 40)' : 'rgb(217, 217, 211)',
1944
+ 'line-width': [
1945
+ 'interpolate',
1946
+ ['linear'],
1947
+ ['zoom'],
1948
+ 11,
1949
+ 2,
1950
+ 13,
1951
+ 2,
1952
+ 14,
1953
+ 3,
1954
+ 15,
1955
+ 4,
1956
+ 16,
1957
+ 6,
1958
+ 17,
1959
+ 10,
1960
+ 18,
1961
+ 14
1962
+ ],
1963
+ 'line-opacity': 1
1964
+ },
1965
+ 'filter': [
1966
+ 'all',
1967
+ ['in', ['get', 'class'], ['literal', ['secondary', 'tertiary']]],
1968
+ ['==', ['get', 'brunnel'], 'bridge']
1969
+ ]
1970
+ },
1971
+ {
1972
+ 'id': 'bridge_pri_fill',
1973
+ 'type': 'line',
1974
+ 'source': 'openmaptiles',
1975
+ 'source-layer': 'transportation',
1976
+ 'minzoom': 11,
1977
+ 'maxzoom': 24,
1978
+ 'layout': {
1979
+ 'line-cap': 'butt',
1980
+ 'line-join': 'round'
1981
+ },
1982
+ 'paint': {
1983
+ 'line-color': dark ? 'rgb(0, 0, 40)' : 'rgb(217, 217, 211)',
1984
+ 'line-width': [
1985
+ 'interpolate',
1986
+ ['linear'],
1987
+ ['zoom'],
1988
+ 11,
1989
+ 1,
1990
+ 13,
1991
+ 2,
1992
+ 14,
1993
+ 4,
1994
+ 15,
1995
+ 6,
1996
+ 16,
1997
+ 8,
1998
+ 17,
1999
+ 12,
2000
+ 18,
2001
+ 16
2002
+ ],
2003
+ 'line-opacity': 1
2004
+ },
2005
+ 'filter': [
2006
+ 'all',
2007
+ ['==', ['get', 'class'], 'primary'],
2008
+ ['!=', ['get', 'ramp'], 1],
2009
+ ['==', ['get', 'brunnel'], 'bridge']
2010
+ ]
2011
+ },
2012
+ {
2013
+ 'id': 'bridge_trunk_fill',
2014
+ 'type': 'line',
2015
+ 'source': 'openmaptiles',
2016
+ 'source-layer': 'transportation',
2017
+ 'minzoom': 11,
2018
+ 'maxzoom': 24,
2019
+ 'layout': {
2020
+ 'line-cap': 'butt',
2021
+ 'line-join': 'round',
2022
+ 'visibility': 'visible'
2023
+ },
2024
+ 'paint': {
2025
+ 'line-color': dark ? 'rgb(0, 0, 40)' : 'rgb(217, 217, 211)',
2026
+ 'line-width': [
2027
+ 'interpolate',
2028
+ ['linear'],
2029
+ ['zoom'],
2030
+ 11,
2031
+ 1,
2032
+ 13,
2033
+ 2,
2034
+ 14,
2035
+ 4,
2036
+ 15,
2037
+ 6,
2038
+ 16,
2039
+ 8,
2040
+ 17,
2041
+ 12,
2042
+ 18,
2043
+ 16
2044
+ ],
2045
+ 'line-opacity': 1
2046
+ },
2047
+ 'filter': [
2048
+ 'all',
2049
+ ['==', ['get', 'class'], 'trunk'],
2050
+ ['!=', ['get', 'ramp'], 1],
2051
+ ['==', ['get', 'brunnel'], 'bridge']
2052
+ ]
2053
+ },
2054
+ {
2055
+ 'id': 'bridge_mot_fill',
2056
+ 'type': 'line',
2057
+ 'source': 'openmaptiles',
2058
+ 'source-layer': 'transportation',
2059
+ 'minzoom': 10,
2060
+ 'maxzoom': 24,
2061
+ 'layout': {
2062
+ 'line-cap': 'butt',
2063
+ 'line-join': 'round'
2064
+ },
2065
+ 'paint': {
2066
+ 'line-color': dark ? 'rgb(0, 0, 40)' : 'rgb(217, 217, 211)',
2067
+ 'line-width': [
2068
+ 'interpolate',
2069
+ ['linear'],
2070
+ ['zoom'],
2071
+ 10,
2072
+ 1,
2073
+ 12,
2074
+ 2,
2075
+ 13,
2076
+ 3,
2077
+ 14,
2078
+ 5,
2079
+ 15,
2080
+ 7,
2081
+ 16,
2082
+ 9,
2083
+ 17,
2084
+ 11,
2085
+ 18,
2086
+ 20
2087
+ ],
2088
+ 'line-opacity': 1
2089
+ },
2090
+ 'filter': [
2091
+ 'all',
2092
+ ['==', ['get', 'class'], 'motorway'],
2093
+ ['!=', ['get', 'ramp'], 1],
2094
+ ['==', ['get', 'brunnel'], 'bridge']
2095
+ ]
2096
+ },
2097
+ {
2098
+ 'id': 'building',
2099
+ 'type': 'fill',
2100
+ 'source': 'openmaptiles',
2101
+ 'source-layer': 'building',
2102
+ 'layout': {
2103
+ 'visibility': 'visible'
2104
+ },
2105
+ 'paint': {
2106
+ 'fill-color': [
2107
+ 'interpolate',
2108
+ ['linear'],
2109
+ ['zoom'],
2110
+ 15,
2111
+ dark ? 'rgba(7, 72, 89, 1)' : 'rgba(255, 255, 255, 1)',
2112
+ 16,
2113
+ dark ? 'rgba(7, 72, 89, 1)' : 'rgba(152, 145, 123, 0.18)'
2114
+ ],
2115
+ 'fill-antialias': true
2116
+ }
2117
+ },
2118
+ {
2119
+ 'id': 'building-top',
2120
+ 'type': 'fill',
2121
+ 'source': 'openmaptiles',
2122
+ 'source-layer': 'building',
2123
+ 'layout': {
2124
+ 'visibility': 'visible'
2125
+ },
2126
+ 'paint': {
2127
+ 'fill-color': dark ? 'rgba(7, 72, 89, 1)' : 'rgba(164, 146, 127, 1)',
2128
+ 'fill-opacity': ['interpolate', ['linear'], ['zoom'], 13, 0, 16, 1],
2129
+ 'fill-translate': [
2130
+ 'interpolate',
2131
+ ['linear'],
2132
+ ['zoom'],
2133
+ 14,
2134
+ ['literal', [0, 0]],
2135
+ 16,
2136
+ ['literal', [-2, -2]]
2137
+ ],
2138
+ 'fill-outline-color': 'rgba(255, 255, 255, 1)'
2139
+ }
2140
+ },
2141
+ {
2142
+ 'id': 'boundary_country_outline',
2143
+ 'type': 'line',
2144
+ 'source': 'openmaptiles',
2145
+ 'source-layer': 'boundary',
2146
+ 'minzoom': 6,
2147
+ 'maxzoom': 24,
2148
+ 'layout': {
2149
+ 'line-cap': 'round',
2150
+ 'line-join': 'round',
2151
+ 'visibility': 'visible'
2152
+ },
2153
+ 'paint': {
2154
+ 'line-color': dark ? 'rgba(0, 0, 0, 1)' : 'rgba(255, 255, 255, 0.7)',
2155
+ 'line-width': 4,
2156
+ 'line-offset': 0,
2157
+ 'line-opacity': 0.5
2158
+ },
2159
+ 'filter': [
2160
+ 'all',
2161
+ ['==', ['get', 'admin_level'], 2],
2162
+ ['==', ['get', 'maritime'], 0],
2163
+ ['==', ['get', 'disputed'], 0]
2164
+ ]
2165
+ },
2166
+ {
2167
+ 'id': 'boundary_country_inner_z0-4',
2168
+ 'type': 'line',
2169
+ 'source': 'openmaptiles',
2170
+ 'source-layer': 'boundary',
2171
+ 'minzoom': 0,
2172
+ 'maxzoom': 5,
2173
+ 'layout': {
2174
+ 'line-cap': 'round',
2175
+ 'line-join': 'round',
2176
+ 'visibility': 'visible'
2177
+ },
2178
+ 'paint': {
2179
+ 'line-color': [
2180
+ 'interpolate',
2181
+ ['linear'],
2182
+ ['zoom'],
2183
+ 4,
2184
+ dark ? 'rgba(68, 73, 76, 0.8)' : 'rgba(151, 151, 151, 0.3)',
2185
+ 5,
2186
+ dark ? 'rgba(163, 168, 173, 0.6)' : 'rgba(151, 151, 151, 0.51)',
2187
+ 6,
2188
+ dark ? 'rgba(163, 168, 173, 0.6)' : 'rgba(151, 151, 151, 0.5)'
2189
+ ],
2190
+ 'line-width': ['interpolate', ['linear'], ['zoom'], 3, 1, 6, 1.5],
2191
+ 'line-offset': 0,
2192
+ 'line-opacity': 1
2193
+ },
2194
+ 'filter': [
2195
+ 'all',
2196
+ ['==', ['get', 'admin_level'], 2],
2197
+ ['==', ['get', 'maritime'], 0],
2198
+ ['!', ['has', 'claimed_by']],
2199
+ ['==', ['get', 'disputed'], 0]
2200
+ ]
2201
+ },
2202
+ {
2203
+ 'id': 'boundary_country_inner_z5-',
2204
+ 'type': 'line',
2205
+ 'source': 'openmaptiles',
2206
+ 'source-layer': 'boundary',
2207
+ 'minzoom': 5,
2208
+ 'layout': {
2209
+ 'line-cap': 'round',
2210
+ 'line-join': 'round',
2211
+ 'visibility': 'visible'
2212
+ },
2213
+ 'paint': {
2214
+ 'line-color': [
2215
+ 'interpolate',
2216
+ ['linear'],
2217
+ ['zoom'],
2218
+ 4,
2219
+ dark ? 'rgba(101, 106, 110, 0.72)' : 'rgba(127, 127, 127, 0.5)',
2220
+ 5,
2221
+ dark ? 'rgba(131, 136, 142, 0.6)' : 'rgba(127, 127, 127, 0.5)',
2222
+ 6,
2223
+ dark ? 'rgba(163, 168, 174, 0.8)' : 'rgba(127, 127, 127, 0.71)'
2224
+ ],
2225
+ 'line-width': ['interpolate', ['linear'], ['zoom'], 3, 1, 6, 1.5],
2226
+ 'line-offset': 0,
2227
+ 'line-opacity': 1
2228
+ },
2229
+ 'filter': [
2230
+ 'all',
2231
+ ['==', ['get', 'admin_level'], 2],
2232
+ ['==', ['get', 'maritime'], 0],
2233
+ ['==', ['get', 'disputed'], 0]
2234
+ ]
2235
+ },
2236
+ {
2237
+ 'id': 'boundary_2_disputed',
2238
+ 'type': 'line',
2239
+ 'source': 'openmaptiles',
2240
+ 'source-layer': 'boundary',
2241
+ 'minzoom': 0.0,
2242
+ 'layout': {
2243
+ 'line-cap': 'round',
2244
+ 'line-join': 'round',
2245
+ 'visibility': 'visible'
2246
+ },
2247
+ 'paint': {
2248
+ 'line-color': [
2249
+ 'interpolate',
2250
+ ['linear'],
2251
+ ['zoom'],
2252
+ 4,
2253
+ dark ? 'rgba(101, 106, 110, 0.72)' : 'rgba(127, 127, 127, 0.5)',
2254
+ 5,
2255
+ dark ? 'rgba(131, 136, 142, 0.6)' : 'rgba(127, 127, 127, 0.5)',
2256
+ 6,
2257
+ dark ? 'rgba(163, 168, 174, 0.8)' : 'rgba(127, 127, 127, 0.71)'
2258
+ ],
2259
+ 'line-width': ['interpolate', ['linear'], ['zoom'], 3, 0.3, 5, 1.2, 12, 2],
2260
+ 'line-opacity': 1,
2261
+ 'line-dasharray': [4, 3]
2262
+ },
2263
+ 'metadata': {},
2264
+ 'filter': [
2265
+ 'all',
2266
+ ['==', ['get', 'admin_level'], 2],
2267
+ ['==', ['get', 'disputed'], 1],
2268
+ ['==', ['get', 'maritime'], 0]
2269
+ ]
2270
+ },
2271
+ {
2272
+ 'id': 'watername_ocean',
2273
+ 'type': 'symbol',
2274
+ 'source': 'openmaptiles',
2275
+ 'source-layer': 'water_name',
2276
+ 'minzoom': 0,
2277
+ 'maxzoom': 5,
2278
+ 'layout': {
2279
+ 'text-font': fonts,
2280
+ 'text-size': ['interpolate', ['linear'], ['zoom'], 0, 13, 2, 14, 4, 18],
2281
+ 'text-field': ['get', 'name'],
2282
+ 'text-padding': 2,
2283
+ 'text-max-width': 6,
2284
+ 'symbol-placement': 'point',
2285
+ 'text-line-height': 1.2,
2286
+ 'text-allow-overlap': false,
2287
+ 'text-letter-spacing': 0.1,
2288
+ 'text-pitch-alignment': 'auto',
2289
+ 'text-ignore-placement': false,
2290
+ 'text-rotation-alignment': 'auto'
2291
+ },
2292
+ 'paint': {
2293
+ 'text-color': dark ? 'rgba(179, 179, 190, 1)' : 'rgba(98, 143, 211, 1)',
2294
+ 'text-halo-blur': 0,
2295
+ 'text-halo-color': dark ? 'rgb(10, 21, 40)' : 'rgba(255, 255, 255, 0.47)',
2296
+ 'text-halo-width': 1
2297
+ },
2298
+ 'filter': [
2299
+ 'all',
2300
+ ['has', 'name'],
2301
+ ['==', ['geometry-type'], 'Point'],
2302
+ ['==', ['get', 'class'], 'ocean']
2303
+ ]
2304
+ },
2305
+ {
2306
+ 'id': 'watername_sea',
2307
+ 'type': 'symbol',
2308
+ 'source': 'openmaptiles',
2309
+ 'source-layer': 'water_name',
2310
+ 'minzoom': 5,
2311
+ 'layout': {
2312
+ 'text-font': fonts,
2313
+ 'text-size': 12,
2314
+ 'text-field': ['get', 'name'],
2315
+ 'text-padding': 2,
2316
+ 'text-max-width': 6,
2317
+ 'symbol-placement': 'point',
2318
+ 'text-line-height': 1.2,
2319
+ 'text-allow-overlap': false,
2320
+ 'text-letter-spacing': 0.1,
2321
+ 'text-pitch-alignment': 'auto',
2322
+ 'text-ignore-placement': false,
2323
+ 'text-rotation-alignment': 'auto'
2324
+ },
2325
+ 'paint': {
2326
+ 'text-color': dark ? 'rgba(179, 179, 190, 1)' : 'rgba(96, 131, 180, 1)',
2327
+ 'text-halo-blur': 0,
2328
+ 'text-halo-color': dark ? 'rgba(0, 0, 0, 1)' : 'rgba(255, 255, 255, 1)',
2329
+ 'text-halo-width': 1
2330
+ },
2331
+ 'filter': [
2332
+ 'all',
2333
+ ['has', 'name'],
2334
+ ['==', ['geometry-type'], 'Point'],
2335
+ ['==', ['get', 'class'], 'sea']
2336
+ ]
2337
+ },
2338
+ {
2339
+ 'id': 'watername_lake',
2340
+ 'type': 'symbol',
2341
+ 'source': 'openmaptiles',
2342
+ 'source-layer': 'water_name',
2343
+ 'minzoom': 4,
2344
+ 'layout': {
2345
+ 'text-font': fonts,
2346
+ 'text-size': ['interpolate', ['linear'], ['zoom'], 13, 9, 14, 10, 15, 11, 16, 12, 17, 13],
2347
+ 'text-field': ['step', ['zoom'], ['get', 'name_en'], 13, ['get', 'name']],
2348
+ 'text-padding': 2,
2349
+ 'symbol-placement': 'point',
2350
+ 'text-line-height': 1.2,
2351
+ 'text-allow-overlap': false,
2352
+ 'text-pitch-alignment': 'auto',
2353
+ 'text-ignore-placement': false,
2354
+ 'text-rotation-alignment': 'auto'
2355
+ },
2356
+ 'paint': {
2357
+ 'text-color': dark ? 'rgba(210, 226, 247, 1)' : 'rgb(45, 113, 218)',
2358
+ 'text-halo-blur': 1,
2359
+ 'text-halo-color': dark ? 'rgba(0, 0, 0, 1)' : 'rgb(240, 245, 252)',
2360
+ 'text-halo-width': 1
2361
+ },
2362
+ 'filter': [
2363
+ 'all',
2364
+ ['has', 'name'],
2365
+ ['==', ['geometry-type'], 'Point'],
2366
+ ['==', ['get', 'class'], 'lake']
2367
+ ]
2368
+ },
2369
+ {
2370
+ 'id': 'watername_lake_line',
2371
+ 'type': 'symbol',
2372
+ 'source': 'openmaptiles',
2373
+ 'source-layer': 'water_name',
2374
+ 'layout': {
2375
+ 'text-font': fonts,
2376
+ 'text-size': ['interpolate', ['linear'], ['zoom'], 13, 9, 14, 10, 15, 11, 16, 12, 17, 13],
2377
+ 'text-field': ['step', ['zoom'], ['get', 'name_en'], 13, ['get', 'name']],
2378
+ 'symbol-spacing': 350,
2379
+ 'symbol-placement': 'line',
2380
+ 'text-line-height': 1.2,
2381
+ 'text-pitch-alignment': 'auto',
2382
+ 'text-rotation-alignment': 'auto'
2383
+ },
2384
+ 'paint': {
2385
+ 'text-color': dark ? 'rgba(129, 173, 235, 1)' : 'rgb(45, 113, 218)',
2386
+ 'text-halo-blur': 1,
2387
+ 'text-halo-color': dark ? 'rgba(0, 0, 0, 1)' : 'rgb(240, 245, 252)',
2388
+ 'text-halo-width': 1
2389
+ },
2390
+ 'filter': ['all', ['has', 'name'], ['==', ['geometry-type'], 'LineString']]
2391
+ },
2392
+ {
2393
+ 'id': 'park-label',
2394
+ 'type': 'symbol',
2395
+ 'source': 'openmaptiles',
2396
+ 'source-layer': 'park',
2397
+ 'minzoom': 0,
2398
+ 'layout': {
2399
+ 'text-font': fonts,
2400
+ 'text-size': ['interpolate', ['exponential', 1.2], ['zoom'], 12, 10, 15, 14],
2401
+ 'text-field': ['concat', ['get', 'name:latin'], '\n', ['get', 'name:nonlatin']],
2402
+ 'visibility': 'visible',
2403
+ 'text-max-width': 9,
2404
+ 'text-transform': 'none',
2405
+ 'text-allow-overlap': false,
2406
+ 'text-letter-spacing': 0.1,
2407
+ 'text-ignore-placement': false
2408
+ },
2409
+ 'paint': {
2410
+ 'text-color': dark ? 'rgba(40, 191, 102, 1)' : 'rgba(29, 176, 51, 1)',
2411
+ 'text-halo-color': dark ? 'rgba(0, 0, 0, 0.8)' : 'rgba(255,255,255,0.8)',
2412
+ 'text-halo-width': 1.2
2413
+ },
2414
+ 'metadata': {
2415
+ 'mapbox:group': '1444849242106.713'
2416
+ },
2417
+ 'filter': ['all', ['==', ['get', 'rank'], 1], ['==', ['geometry-type'], 'Point']]
2418
+ },
2419
+ {
2420
+ 'id': 'place_hamlet',
2421
+ 'type': 'symbol',
2422
+ 'source': 'openmaptiles',
2423
+ 'source-layer': 'place',
2424
+ 'minzoom': 12,
2425
+ 'maxzoom': 16,
2426
+ 'layout': {
2427
+ 'icon-size': 1,
2428
+ 'text-font': fonts,
2429
+ 'text-size': ['interpolate', ['linear'], ['zoom'], 13, 8, 14, 10, 16, 11],
2430
+ 'icon-image': '',
2431
+ 'text-field': ['step', ['zoom'], ['get', 'name_en'], 14, ['get', 'name']],
2432
+ 'icon-offset': [16, 0],
2433
+ 'text-anchor': 'center',
2434
+ 'text-offset': [0.2, 0.2],
2435
+ 'text-max-width': 10,
2436
+ 'text-transform': ['step', ['zoom'], 'none', 14, 'uppercase'],
2437
+ 'text-keep-upright': true
2438
+ },
2439
+ 'paint': {
2440
+ 'icon-color': dark ? 'rgb(30, 40, 46)' : 'rgb(57, 74, 86)',
2441
+ 'text-color': dark ? 'rgba(211, 211, 211, 1)' : 'rgb(57, 74, 86)',
2442
+ 'text-halo-color': dark ? 'rgba(32, 32, 32, 1)' : 'rgb(219, 225, 230)',
2443
+ 'text-halo-width': 1,
2444
+ 'icon-translate-anchor': 'map'
2445
+ },
2446
+ 'filter': [
2447
+ 'any',
2448
+ ['==', ['get', 'class'], 'neighbourhood'],
2449
+ ['==', ['get', 'class'], 'hamlet']
2450
+ ]
2451
+ },
2452
+ {
2453
+ 'id': 'place_suburbs',
2454
+ 'type': 'symbol',
2455
+ 'source': 'openmaptiles',
2456
+ 'source-layer': 'place',
2457
+ 'minzoom': 12,
2458
+ 'maxzoom': 16,
2459
+ 'layout': {
2460
+ 'icon-size': 1,
2461
+ 'text-font': fonts,
2462
+ 'text-size': ['interpolate', ['linear'], ['zoom'], 12, 9, 13, 10, 14, 11, 15, 12, 16, 13],
2463
+ 'icon-image': '',
2464
+ 'text-field': ['step', ['zoom'], ['get', 'name_en'], 13, ['get', 'name']],
2465
+ 'icon-offset': [16, 0],
2466
+ 'text-anchor': 'center',
2467
+ 'text-offset': [0.2, 0.2],
2468
+ 'text-max-width': 10,
2469
+ 'text-transform': ['step', ['zoom'], 'none', 12, 'uppercase'],
2470
+ 'text-keep-upright': true
2471
+ },
2472
+ 'paint': {
2473
+ 'icon-color': dark ? 'rgb(30, 40, 46)' : 'rgb(57, 74, 86)',
2474
+ 'text-color': dark ? 'rgba(218, 218, 218, 1)' : 'rgb(57, 74, 86)',
2475
+ 'text-halo-color': dark ? 'rgba(53, 53, 53, 1)' : 'rgba(255, 255, 255, 1)',
2476
+ 'text-halo-width': 1,
2477
+ 'icon-translate-anchor': 'map'
2478
+ },
2479
+ 'filter': ['all', ['==', ['get', 'class'], 'suburb']]
2480
+ },
2481
+ {
2482
+ 'id': 'place_villages',
2483
+ 'type': 'symbol',
2484
+ 'source': 'openmaptiles',
2485
+ 'source-layer': 'place',
2486
+ 'minzoom': 10,
2487
+ 'maxzoom': 16,
2488
+ 'layout': {
2489
+ 'icon-size': 1,
2490
+ 'text-font': fonts,
2491
+ 'text-size': ['interpolate', ['linear'], ['zoom'], 10, 9, 12, 10, 13, 11, 14, 12, 16, 13],
2492
+ 'icon-image': '',
2493
+ 'text-field': ['step', ['zoom'], ['get', 'name_en'], 13, ['get', 'name']],
2494
+ 'icon-offset': [16, 0],
2495
+ 'text-anchor': 'center',
2496
+ 'text-offset': [0.2, 0.2],
2497
+ 'text-max-width': 10,
2498
+ 'text-transform': 'none',
2499
+ 'text-keep-upright': true
2500
+ },
2501
+ 'paint': {
2502
+ 'icon-color': dark ? 'rgb(30, 40, 46)' : 'rgb(57, 74, 86)',
2503
+ 'text-color': dark ? 'rgba(166, 166, 166, 1)' : 'rgb(57, 74, 86)',
2504
+ 'text-halo-color': dark ? 'rgba(7, 7, 7, 1)' : 'rgba(255, 255, 255, 1)',
2505
+ 'text-halo-width': 1,
2506
+ 'icon-translate-anchor': 'map'
2507
+ },
2508
+ 'filter': ['all', ['==', ['get', 'class'], 'village']]
2509
+ },
2510
+ {
2511
+ 'id': 'place_town',
2512
+ 'type': 'symbol',
2513
+ 'source': 'openmaptiles',
2514
+ 'source-layer': 'place',
2515
+ 'minzoom': 8,
2516
+ 'maxzoom': 14,
2517
+ 'layout': {
2518
+ 'icon-size': 1,
2519
+ 'text-font': fonts,
2520
+ 'text-size': ['interpolate', ['linear'], ['zoom'], 8, 10, 9, 10, 10, 11, 13, 14, 14, 15],
2521
+ 'icon-image': '',
2522
+ 'text-field': ['step', ['zoom'], ['get', 'name_en'], 13, ['get', 'name']],
2523
+ 'icon-offset': [16, 0],
2524
+ 'text-anchor': 'center',
2525
+ 'text-offset': [0.2, 0.2],
2526
+ 'text-max-width': 10,
2527
+ 'text-transform': 'none',
2528
+ 'text-keep-upright': true
2529
+ },
2530
+ 'paint': {
2531
+ 'icon-color': dark ? 'rgba(191, 191, 191, 1)' : 'rgb(57, 74, 86)',
2532
+ 'text-color': dark ? 'rgba(195, 195, 195, 1)' : 'rgb(57, 74, 86)',
2533
+ 'text-halo-color': dark ? 'rgba(53, 53, 53, 1)' : 'rgba(255, 255, 255, 1)',
2534
+ 'text-halo-width': 1,
2535
+ 'icon-translate-anchor': 'map'
2536
+ },
2537
+ 'filter': ['all', ['==', ['get', 'class'], 'town']]
2538
+ },
2539
+ {
2540
+ 'id': 'place_country_2',
2541
+ 'type': 'symbol',
2542
+ 'source': 'openmaptiles',
2543
+ 'source-layer': 'place',
2544
+ 'minzoom': 3,
2545
+ 'maxzoom': 10,
2546
+ 'layout': {
2547
+ 'text-font': fonts,
2548
+ 'text-size': ['interpolate', ['linear'], ['zoom'], 3, 10, 5, 11, 6, 12, 7, 13, 8, 14],
2549
+ 'text-field': ['get', 'name_en'],
2550
+ 'text-transform': 'none'
2551
+ },
2552
+ 'paint': {
2553
+ 'text-color': [
2554
+ 'interpolate',
2555
+ ['linear'],
2556
+ ['zoom'],
2557
+ 3,
2558
+ dark ? 'rgba(179, 179, 190, 1)' : 'rgb(101, 106, 110)',
2559
+ 5,
2560
+ dark ? 'rgba(179, 179, 190, 1)' : 'rgb(127, 129, 131)',
2561
+ 6,
2562
+ dark ? 'rgba(179, 179, 190, 1)' : 'rgba(131, 131, 131, 1)'
2563
+ ],
2564
+ 'text-halo-color': dark ? 'rgba(0, 0, 0, 1)' : 'rgba(255, 255, 255, 1)',
2565
+ 'text-halo-width': 1
2566
+ },
2567
+ 'filter': [
2568
+ 'all',
2569
+ ['==', ['get', 'class'], 'country'],
2570
+ ['>=', ['get', 'rank'], 3],
2571
+ ['has', 'iso_a2']
2572
+ ]
2573
+ },
2574
+ {
2575
+ 'id': 'place_country_1',
2576
+ 'type': 'symbol',
2577
+ 'source': 'openmaptiles',
2578
+ 'source-layer': 'place',
2579
+ 'minzoom': 2,
2580
+ 'maxzoom': 7,
2581
+ 'layout': {
2582
+ 'text-font': fonts,
2583
+ 'text-size': ['interpolate', ['linear'], ['zoom'], 3, 11, 4, 12, 5, 13, 6, 14],
2584
+ 'text-field': ['get', 'name_en'],
2585
+ 'text-max-width': ['interpolate', ['linear'], ['zoom'], 2, 6, 3, 6, 4, 9, 5, 12],
2586
+ 'text-transform': 'none'
2587
+ },
2588
+ 'paint': {
2589
+ 'text-color': [
2590
+ 'interpolate',
2591
+ ['linear'],
2592
+ ['zoom'],
2593
+ 3,
2594
+ dark ? 'rgba(179, 179, 190, 1)' : 'rgba(114, 114, 114, 1)',
2595
+ 5,
2596
+ dark ? 'rgba(179, 179, 190, 1)' : 'rgba(116, 116, 116, 1)',
2597
+ 6,
2598
+ dark ? 'rgba(179, 179, 190, 1)' : 'rgba(116, 116, 116, 1)'
2599
+ ],
2600
+ 'text-halo-color': dark ? 'rgba(0, 0, 0, 1)' : 'rgba(255, 255, 255, 1)',
2601
+ 'text-halo-width': 1
2602
+ },
2603
+ 'filter': ['all', ['==', ['get', 'class'], 'country'], ['<=', ['get', 'rank'], 2]]
2604
+ },
2605
+ {
2606
+ 'id': 'place_state',
2607
+ 'type': 'symbol',
2608
+ 'source': 'openmaptiles',
2609
+ 'source-layer': 'place',
2610
+ 'minzoom': 5,
2611
+ 'maxzoom': 10,
2612
+ 'layout': {
2613
+ 'text-font': fonts,
2614
+ 'text-size': ['interpolate', ['linear'], ['zoom'], 5, 12, 7, 14],
2615
+ 'text-field': ['get', 'name_en'],
2616
+ 'text-max-width': 9,
2617
+ 'text-transform': 'none'
2618
+ },
2619
+ 'paint': {
2620
+ 'text-color': dark ? 'rgba(179, 179, 190, 1)' : 'rgb(116, 119, 122)',
2621
+ 'text-halo-color': dark ? 'rgba(0, 0, 0, 1)' : 'rgb(216, 238, 215)',
2622
+ 'text-halo-width': 1
2623
+ },
2624
+ 'filter': ['all', ['==', ['get', 'class'], 'state'], ['<=', ['get', 'rank'], 4]]
2625
+ },
2626
+ {
2627
+ 'id': 'place_continent',
2628
+ 'type': 'symbol',
2629
+ 'source': 'openmaptiles',
2630
+ 'source-layer': 'place',
2631
+ 'minzoom': 0,
2632
+ 'maxzoom': 2,
2633
+ 'layout': {
2634
+ 'text-font': fonts,
2635
+ 'text-size': 14,
2636
+ 'text-field': ['get', 'name_en'],
2637
+ 'text-justify': 'center',
2638
+ 'text-max-width': 9,
2639
+ 'text-transform': 'uppercase',
2640
+ 'text-keep-upright': false,
2641
+ 'text-letter-spacing': 0.1
2642
+ },
2643
+ 'paint': {
2644
+ 'text-color': dark ? 'rgba(209, 209, 209, 1)' : 'rgb(57, 74, 86)',
2645
+ 'text-halo-color': dark ? 'rgba(0, 0, 0, 1)' : 'rgba(255, 255, 255, 1)',
2646
+ 'text-halo-width': 1
2647
+ },
2648
+ 'filter': ['all', ['==', ['get', 'class'], 'continent']]
2649
+ },
2650
+ {
2651
+ 'id': 'place_city_r6',
2652
+ 'type': 'symbol',
2653
+ 'source': 'openmaptiles',
2654
+ 'source-layer': 'place',
2655
+ 'minzoom': 8,
2656
+ 'maxzoom': 15,
2657
+ 'layout': {
2658
+ 'icon-size': 1,
2659
+ 'text-font': fonts,
2660
+ 'text-size': ['interpolate', ['linear'], ['zoom'], 8, 12, 9, 13, 10, 14, 13, 17, 14, 20],
2661
+ 'icon-image': '',
2662
+ 'text-field': ['step', ['zoom'], ['get', 'name_en'], 13, ['get', 'name']],
2663
+ 'icon-offset': [16, 0],
2664
+ 'text-anchor': 'center',
2665
+ 'text-offset': [0.2, 0.2],
2666
+ 'text-max-width': 10,
2667
+ 'text-transform': 'uppercase',
2668
+ 'text-keep-upright': true
2669
+ },
2670
+ 'paint': {
2671
+ 'icon-color': dark ? 'rgb(30, 40, 46)' : 'rgb(57, 74, 86)',
2672
+ 'text-color': dark ? 'rgba(217, 217, 217, 1)' : 'rgb(57, 74, 86)',
2673
+ 'text-halo-color': dark ? 'rgba(36, 36, 36, 1)' : 'rgba(255, 255, 255, 1)',
2674
+ 'text-halo-width': 1,
2675
+ 'icon-translate-anchor': 'map'
2676
+ },
2677
+ 'filter': ['all', ['==', ['get', 'class'], 'city'], ['>=', ['get', 'rank'], 6]]
2678
+ },
2679
+ {
2680
+ 'id': 'place_city_r5',
2681
+ 'type': 'symbol',
2682
+ 'source': 'openmaptiles',
2683
+ 'source-layer': 'place',
2684
+ 'minzoom': 8,
2685
+ 'maxzoom': 15,
2686
+ 'layout': {
2687
+ 'icon-size': 1,
2688
+ 'text-font': fonts,
2689
+ 'text-size': ['interpolate', ['linear'], ['zoom'], 8, 14, 10, 16, 13, 19, 14, 22],
2690
+ 'icon-image': '',
2691
+ 'text-field': ['step', ['zoom'], ['get', 'name_en'], 13, ['get', 'name']],
2692
+ 'icon-offset': [16, 0],
2693
+ 'text-anchor': 'center',
2694
+ 'text-offset': [0.2, 0.2],
2695
+ 'text-max-width': 10,
2696
+ 'text-transform': 'uppercase',
2697
+ 'text-keep-upright': true
2698
+ },
2699
+ 'paint': {
2700
+ 'icon-color': dark ? 'rgb(30, 40, 46)' : 'rgb(57, 74, 86)',
2701
+ 'text-color': dark ? 'rgba(209, 209, 209, 1)' : 'rgb(57, 74, 86)',
2702
+ 'text-halo-color': dark ? 'rgba(0, 0, 0, 1)' : 'rgba(255, 255, 255, 1)',
2703
+ 'text-halo-width': 1,
2704
+ 'icon-translate-anchor': 'map'
2705
+ },
2706
+ 'filter': [
2707
+ 'all',
2708
+ ['==', ['get', 'class'], 'city'],
2709
+ ['>=', ['get', 'rank'], 0],
2710
+ ['<=', ['get', 'rank'], 5]
2711
+ ]
2712
+ },
2713
+ {
2714
+ 'id': 'place_city_dot_r7',
2715
+ 'type': 'symbol',
2716
+ 'source': 'openmaptiles',
2717
+ 'source-layer': 'place',
2718
+ 'minzoom': 6,
2719
+ 'maxzoom': 7,
2720
+ 'layout': {
2721
+ 'icon-size': 0.4,
2722
+ 'text-font': fonts,
2723
+ 'text-size': 12,
2724
+ 'icon-image': 'circle-11',
2725
+ 'text-field': ['get', 'name_en'],
2726
+ 'icon-offset': [16, 5],
2727
+ 'text-anchor': 'right',
2728
+ 'text-offset': [0.2, 0.2],
2729
+ 'text-max-width': 8,
2730
+ 'text-keep-upright': true
2731
+ },
2732
+ 'paint': {
2733
+ 'icon-color': dark ? 'rgb(30, 40, 46)' : 'rgb(57, 74, 86)',
2734
+ 'text-color': dark ? 'rgba(193, 193, 193, 1)' : 'rgb(57, 74, 86)',
2735
+ 'text-halo-color': dark ? 'rgba(0, 0, 0, 1)' : 'rgba(255, 255, 255, 1)',
2736
+ 'text-halo-width': 1,
2737
+ 'icon-translate-anchor': 'map'
2738
+ },
2739
+ 'filter': ['all', ['==', ['get', 'class'], 'city'], ['<=', ['get', 'rank'], 7]]
2740
+ },
2741
+ {
2742
+ 'id': 'place_city_dot_r4',
2743
+ 'type': 'symbol',
2744
+ 'source': 'openmaptiles',
2745
+ 'source-layer': 'place',
2746
+ 'minzoom': 5,
2747
+ 'maxzoom': 7,
2748
+ 'layout': {
2749
+ 'icon-size': 0.4,
2750
+ 'text-font': fonts,
2751
+ 'text-size': 12,
2752
+ 'icon-image': 'circle-11',
2753
+ 'text-field': ['get', 'name_en'],
2754
+ 'icon-offset': [16, 5],
2755
+ 'text-anchor': 'right',
2756
+ 'text-offset': [0.2, 0.2],
2757
+ 'text-max-width': 8,
2758
+ 'text-keep-upright': true
2759
+ },
2760
+ 'paint': {
2761
+ 'icon-color': dark ? 'rgb(30, 40, 46)' : 'rgb(57, 74, 86)',
2762
+ 'text-color': dark ? 'rgba(196, 200, 204, 1)' : 'rgb(57, 74, 86)',
2763
+ 'text-halo-color': dark ? 'rgba(0, 0, 0, 1)' : 'rgba(255, 255, 255, 1)',
2764
+ 'text-halo-width': 1,
2765
+ 'icon-translate-anchor': 'map'
2766
+ },
2767
+ 'filter': ['all', ['==', ['get', 'class'], 'city'], ['<=', ['get', 'rank'], 4]]
2768
+ },
2769
+ {
2770
+ 'id': 'place_city_dot_r2',
2771
+ 'type': 'symbol',
2772
+ 'source': 'openmaptiles',
2773
+ 'source-layer': 'place',
2774
+ 'minzoom': 4,
2775
+ 'maxzoom': 7,
2776
+ 'layout': {
2777
+ 'icon-size': 0.4,
2778
+ 'text-font': fonts,
2779
+ 'text-size': 12,
2780
+ 'icon-image': 'circle-11',
2781
+ 'text-field': ['get', 'name_en'],
2782
+ 'icon-offset': [16, 5],
2783
+ 'text-anchor': 'right',
2784
+ 'text-offset': [0.2, 0.2],
2785
+ 'text-max-width': 8,
2786
+ 'text-keep-upright': true
2787
+ },
2788
+ 'paint': {
2789
+ 'icon-color': dark ? 'rgb(30, 40, 46)' : 'rgb(57, 74, 86)',
2790
+ 'text-color': dark ? 'rgba(196, 200, 204, 1)' : 'rgb(57, 74, 86)',
2791
+ 'text-halo-color': dark ? 'rgba(0, 0, 0, 1)' : 'rgba(255, 255, 255, 1)',
2792
+ 'text-halo-width': 1,
2793
+ 'icon-translate-anchor': 'map'
2794
+ },
2795
+ 'filter': ['all', ['==', ['get', 'class'], 'city'], ['<=', ['get', 'rank'], 2]]
2796
+ },
2797
+ {
2798
+ 'id': 'place_city_dot_z7',
2799
+ 'type': 'symbol',
2800
+ 'source': 'openmaptiles',
2801
+ 'source-layer': 'place',
2802
+ 'minzoom': 7,
2803
+ 'maxzoom': 8,
2804
+ 'layout': {
2805
+ 'icon-size': 0.4,
2806
+ 'text-font': fonts,
2807
+ 'text-size': 12,
2808
+ 'icon-image': 'circle-11',
2809
+ 'text-field': ['get', 'name_en'],
2810
+ 'icon-offset': [16, 5],
2811
+ 'text-anchor': 'right',
2812
+ 'text-offset': [0.2, 0.2],
2813
+ 'text-max-width': 8,
2814
+ 'text-keep-upright': true
2815
+ },
2816
+ 'paint': {
2817
+ 'icon-color': dark ? 'rgb(30, 40, 46)' : 'rgb(57, 74, 86)',
2818
+ 'text-color': dark ? 'rgba(209, 209, 209, 1)' : 'rgb(57, 74, 86)',
2819
+ 'text-halo-color': dark ? 'rgba(34, 34, 34, 1)' : 'rgba(255, 255, 255, 1)',
2820
+ 'text-halo-width': 1,
2821
+ 'icon-translate-anchor': 'map'
2822
+ },
2823
+ 'filter': [
2824
+ 'all',
2825
+ ['!', ['has', 'capital']],
2826
+ ['!', ['in', ['get', 'class'], ['literal', ['country', 'state']]]]
2827
+ ]
2828
+ },
2829
+ {
2830
+ 'id': 'place_capital_dot_z7',
2831
+ 'type': 'symbol',
2832
+ 'source': 'openmaptiles',
2833
+ 'source-layer': 'place',
2834
+ 'minzoom': 7,
2835
+ 'maxzoom': 8,
2836
+ 'layout': {
2837
+ 'icon-size': 0.4,
2838
+ 'text-font': fonts,
2839
+ 'text-size': 12,
2840
+ 'icon-image': 'circle-11',
2841
+ 'text-field': ['get', 'name_en'],
2842
+ 'icon-offset': [16, 5],
2843
+ 'text-anchor': 'right',
2844
+ 'text-offset': [0.2, 0.2],
2845
+ 'text-max-width': 8,
2846
+ 'text-transform': 'uppercase',
2847
+ 'text-keep-upright': true
2848
+ },
2849
+ 'paint': {
2850
+ 'icon-color': dark ? 'rgb(30, 40, 46)' : 'rgb(57, 74, 86)',
2851
+ 'text-color': dark ? 'rgba(201, 201, 201, 1)' : 'rgb(57, 74, 86)',
2852
+ 'text-halo-color': dark ? 'rgba(30, 30, 30, 1)' : 'rgba(255, 255, 255, 1)',
2853
+ 'text-halo-width': 1,
2854
+ 'icon-translate-anchor': 'map'
2855
+ },
2856
+ 'filter': ['all', ['>', ['get', 'capital'], 0]]
2857
+ },
2858
+ {
2859
+ 'id': 'poi_stadium',
2860
+ 'type': 'symbol',
2861
+ 'source': 'openmaptiles',
2862
+ 'source-layer': 'poi',
2863
+ 'minzoom': 15,
2864
+ 'layout': {
2865
+ 'text-font': fonts,
2866
+ 'text-size': ['interpolate', ['linear'], ['zoom'], 15, 8, 17, 9, 18, 10],
2867
+ 'text-field': ['get', 'name'],
2868
+ 'text-transform': 'uppercase'
2869
+ },
2870
+ 'paint': {
2871
+ 'text-color': dark ? 'rgb(48, 48, 48)' : 'rgb(82, 82, 82)',
2872
+ 'text-halo-color': dark ? 'rgba(201, 201, 201, 0.15)' : 'rgba(234, 234, 234, 0.15)',
2873
+ 'text-halo-width': 1
2874
+ },
2875
+ 'filter': [
2876
+ 'all',
2877
+ ['in', ['get', 'class'], ['literal', ['stadium', 'cemetery', 'attraction']]],
2878
+ ['<=', ['get', 'rank'], 3]
2879
+ ]
2880
+ },
2881
+ {
2882
+ 'id': 'poi_park',
2883
+ 'type': 'symbol',
2884
+ 'source': 'openmaptiles',
2885
+ 'source-layer': 'poi',
2886
+ 'minzoom': 15,
2887
+ 'layout': {
2888
+ 'text-font': fonts,
2889
+ 'text-size': ['interpolate', ['linear'], ['zoom'], 15, 8, 17, 9, 18, 10],
2890
+ 'text-field': ['get', 'name'],
2891
+ 'text-transform': 'uppercase'
2892
+ },
2893
+ 'paint': {
2894
+ 'text-color': dark ? 'rgba(193, 242, 214, 1)' : 'rgb(82, 82, 82)',
2895
+ 'text-halo-color': dark ? 'rgba(0, 0, 0, 0.5)' : 'rgba(234, 234, 234, 0.15)',
2896
+ 'text-halo-width': 1
2897
+ },
2898
+ 'filter': ['all', ['==', ['get', 'class'], 'park']]
2899
+ },
2900
+ {
2901
+ 'id': 'roadname_minor',
2902
+ 'type': 'symbol',
2903
+ 'source': 'openmaptiles',
2904
+ 'source-layer': 'transportation_name',
2905
+ 'minzoom': 16,
2906
+ 'layout': {
2907
+ 'text-font': fonts,
2908
+ 'text-size': 9,
2909
+ 'text-field': ['get', 'name'],
2910
+ 'text-justify': 'center',
2911
+ 'symbol-spacing': 200,
2912
+ 'symbol-placement': 'line',
2913
+ 'symbol-avoid-edges': false,
2914
+ 'text-pitch-alignment': 'auto',
2915
+ 'text-rotation-alignment': 'auto'
2916
+ },
2917
+ 'paint': {
2918
+ 'text-color': dark ? 'rgba(255, 255, 255, 1)' : 'rgba(73, 73, 53, 1)',
2919
+ 'text-halo-color': dark ? 'rgba(0, 0, 0, 1)' : 'rgba(255, 255, 255, 1)',
2920
+ 'text-halo-width': 1
2921
+ },
2922
+ 'filter': ['all', ['in', ['get', 'class'], ['literal', ['minor', 'service']]]]
2923
+ },
2924
+ {
2925
+ 'id': 'roadname_sec',
2926
+ 'type': 'symbol',
2927
+ 'source': 'openmaptiles',
2928
+ 'source-layer': 'transportation_name',
2929
+ 'minzoom': 15,
2930
+ 'layout': {
2931
+ 'text-font': fonts,
2932
+ 'text-size': ['interpolate', ['linear'], ['zoom'], 15, 9, 16, 11, 18, 12],
2933
+ 'text-field': ['get', 'name'],
2934
+ 'text-justify': 'center',
2935
+ 'symbol-spacing': 200,
2936
+ 'symbol-placement': 'line',
2937
+ 'symbol-avoid-edges': false,
2938
+ 'text-pitch-alignment': 'auto',
2939
+ 'text-rotation-alignment': 'auto'
2940
+ },
2941
+ 'paint': {
2942
+ 'text-color': dark ? 'rgba(255, 255, 255, 1)' : 'rgba(90, 92, 71, 1)',
2943
+ 'text-halo-color': dark ? 'rgba(0, 0, 0, 1)' : 'rgba(255, 255, 255, 1)',
2944
+ 'text-halo-width': 1
2945
+ },
2946
+ 'filter': ['all', ['in', ['get', 'class'], ['literal', ['secondary', 'tertiary']]]]
2947
+ },
2948
+ {
2949
+ 'id': 'roadname_pri',
2950
+ 'type': 'symbol',
2951
+ 'source': 'openmaptiles',
2952
+ 'source-layer': 'transportation_name',
2953
+ 'minzoom': 14,
2954
+ 'layout': {
2955
+ 'text-font': fonts,
2956
+ 'text-size': ['interpolate', ['linear'], ['zoom'], 14, 10, 15, 10, 16, 11, 18, 12],
2957
+ 'text-field': ['get', 'name'],
2958
+ 'text-justify': 'center',
2959
+ 'symbol-spacing': ['interpolate', ['linear'], ['zoom'], 6, 200, 16, 250],
2960
+ 'symbol-placement': 'line',
2961
+ 'symbol-avoid-edges': false,
2962
+ 'text-letter-spacing': ['interpolate', ['linear'], ['zoom'], 14, 0, 16, 0.2],
2963
+ 'text-pitch-alignment': 'auto',
2964
+ 'text-rotation-alignment': 'auto'
2965
+ },
2966
+ 'paint': {
2967
+ 'text-color': dark ? 'rgb(255, 255, 255)' : 'rgb(0, 0, 0)',
2968
+ 'text-halo-color': dark ? 'rgb(0, 0, 0)' : 'rgb(255, 255, 255)',
2969
+ 'text-halo-width': 1
2970
+ },
2971
+ 'filter': ['all', ['in', ['get', 'class'], ['literal', ['primary']]]]
2972
+ },
2973
+ {
2974
+ 'id': 'roadname_major',
2975
+ 'type': 'symbol',
2976
+ 'source': 'openmaptiles',
2977
+ 'source-layer': 'transportation_name',
2978
+ 'minzoom': 13,
2979
+ 'layout': {
2980
+ 'text-font': fonts,
2981
+ 'text-size': ['interpolate', ['linear'], ['zoom'], 14, 10, 15, 10, 16, 11, 18, 12],
2982
+ 'text-field': ['get', 'name'],
2983
+ 'text-justify': 'center',
2984
+ 'symbol-spacing': ['interpolate', ['linear'], ['zoom'], 6, 200, 16, 250],
2985
+ 'symbol-placement': 'line',
2986
+ 'symbol-avoid-edges': false,
2987
+ 'text-letter-spacing': ['interpolate', ['linear'], ['zoom'], 13, 0, 16, 0.2],
2988
+ 'text-pitch-alignment': 'auto',
2989
+ 'text-rotation-alignment': 'auto'
2990
+ },
2991
+ 'paint': {
2992
+ 'text-color': dark ? 'rgb(255, 255, 255)' : 'rgb(0, 0, 0)',
2993
+ 'text-halo-color': dark ? 'rgb(0, 0, 0)' : 'rgb(255, 255, 255)',
2994
+ 'text-halo-width': 1
2995
+ },
2996
+ 'filter': ['all', ['in', ['get', 'class'], ['literal', ['trunk', 'motorway']]]]
2997
+ },
2998
+ {
2999
+ 'id': 'housenumber',
3000
+ 'type': 'symbol',
3001
+ 'source': 'openmaptiles',
3002
+ 'source-layer': 'housenumber',
3003
+ 'minzoom': 17,
3004
+ 'maxzoom': 24,
3005
+ 'layout': {
3006
+ 'text-font': fonts,
3007
+ 'text-size': ['interpolate', ['linear'], ['zoom'], 17, 9, 18, 11],
3008
+ 'text-field': ['get', 'housenumber']
3009
+ },
3010
+ 'paint': {
3011
+ 'text-color': dark ? 'rgb(69, 158, 124)' : 'rgba(255, 255, 255, 1)',
3012
+ 'text-halo-color': dark ? 'rgba(201, 201, 201, 0.15)' : 'rgba(0, 0, 0, 0.15)',
3013
+ 'text-halo-width': 0.75
3014
+ }
3015
+ }
3016
+ ],
3017
+ 'metadata': {
3018
+ 'maptiler:copyright': 'This style was generated on MapTiler Cloud. Usage outside of MapTiler Cloud or MapTiler Server requires valid MapTiler Data package: https://www.maptiler.com/data/ -- please contact us.'
3019
+ },
3020
+ 'glyphs': `https://api.maptiler.com/fonts/{fontstack}/{range}.pbf?key=${key}`,
3021
+ 'sprite': 'https://api.maptiler.com/maps/17edd8b7-a153-4528-b076-32743671d394/sprite',
3022
+ 'bearing': 0,
3023
+ 'pitch': 0,
3024
+ 'center': [8.611423932402658, 46.76324669153797],
3025
+ 'zoom': 6.680213932099212
3026
+ });
3027
+
3028
+ /**
3029
+ * Copyright (c) Siemens 2016 - 2026
3030
+ * SPDX-License-Identifier: MIT
3031
+ */
3032
+
3033
+ /**
3034
+ * Generated bundle index. Do not edit.
3035
+ */
3036
+
3037
+ export { siMapStyle };
3038
+ //# sourceMappingURL=siemens-map-styles-common.mjs.map