geotimelapse 0.1.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.
Files changed (81) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +109 -0
  3. package/dist/bounds.d.ts +5 -0
  4. package/dist/bounds.d.ts.map +1 -0
  5. package/dist/bounds.js +9 -0
  6. package/dist/bounds.js.map +1 -0
  7. package/dist/clock.d.ts +24 -0
  8. package/dist/clock.d.ts.map +1 -0
  9. package/dist/clock.js +108 -0
  10. package/dist/clock.js.map +1 -0
  11. package/dist/counter.d.ts +18 -0
  12. package/dist/counter.d.ts.map +1 -0
  13. package/dist/counter.js +54 -0
  14. package/dist/counter.js.map +1 -0
  15. package/dist/duckdb-source.d.ts +24 -0
  16. package/dist/duckdb-source.d.ts.map +1 -0
  17. package/dist/duckdb-source.js +211 -0
  18. package/dist/duckdb-source.js.map +1 -0
  19. package/dist/geo-timelapse.d.ts +8 -0
  20. package/dist/geo-timelapse.d.ts.map +1 -0
  21. package/dist/geo-timelapse.js +143 -0
  22. package/dist/geo-timelapse.js.map +1 -0
  23. package/dist/glow-layer.d.ts +47 -0
  24. package/dist/glow-layer.d.ts.map +1 -0
  25. package/dist/glow-layer.js +129 -0
  26. package/dist/glow-layer.js.map +1 -0
  27. package/dist/hooks.d.ts +32 -0
  28. package/dist/hooks.d.ts.map +1 -0
  29. package/dist/hooks.js +142 -0
  30. package/dist/hooks.js.map +1 -0
  31. package/dist/index.d.ts +6 -0
  32. package/dist/index.d.ts.map +1 -0
  33. package/dist/index.js +3 -0
  34. package/dist/index.js.map +1 -0
  35. package/dist/map-style.d.ts +3 -0
  36. package/dist/map-style.d.ts.map +1 -0
  37. package/dist/map-style.js +832 -0
  38. package/dist/map-style.js.map +1 -0
  39. package/dist/map.d.ts +11 -0
  40. package/dist/map.d.ts.map +1 -0
  41. package/dist/map.js +60 -0
  42. package/dist/map.js.map +1 -0
  43. package/dist/player-bar.d.ts +4 -0
  44. package/dist/player-bar.d.ts.map +1 -0
  45. package/dist/player-bar.js +118 -0
  46. package/dist/player-bar.js.map +1 -0
  47. package/dist/settings-menu.d.ts +17 -0
  48. package/dist/settings-menu.d.ts.map +1 -0
  49. package/dist/settings-menu.js +18 -0
  50. package/dist/settings-menu.js.map +1 -0
  51. package/dist/synthetic-source.d.ts +18 -0
  52. package/dist/synthetic-source.d.ts.map +1 -0
  53. package/dist/synthetic-source.js +192 -0
  54. package/dist/synthetic-source.js.map +1 -0
  55. package/dist/types.d.ts +62 -0
  56. package/dist/types.d.ts.map +1 -0
  57. package/dist/types.js +2 -0
  58. package/dist/types.js.map +1 -0
  59. package/dist/utils.d.ts +9 -0
  60. package/dist/utils.d.ts.map +1 -0
  61. package/dist/utils.js +28 -0
  62. package/dist/utils.js.map +1 -0
  63. package/package.json +67 -0
  64. package/src/bounds.tsx +14 -0
  65. package/src/clock.tsx +130 -0
  66. package/src/counter.tsx +96 -0
  67. package/src/duckdb-source.ts +238 -0
  68. package/src/geo-timelapse.tsx +204 -0
  69. package/src/glow-layer.test.ts +51 -0
  70. package/src/glow-layer.ts +166 -0
  71. package/src/hooks.ts +167 -0
  72. package/src/index.ts +5 -0
  73. package/src/map-style.ts +833 -0
  74. package/src/map.tsx +107 -0
  75. package/src/player-bar.tsx +164 -0
  76. package/src/settings-menu.tsx +117 -0
  77. package/src/synthetic-source.test.ts +58 -0
  78. package/src/synthetic-source.ts +218 -0
  79. package/src/types.ts +66 -0
  80. package/src/utils.test.ts +60 -0
  81. package/src/utils.ts +32 -0
@@ -0,0 +1,832 @@
1
+ // The geotimelapse skin: dark relief with deep blue water.
2
+ export const mapStyle = {
3
+ version: 8,
4
+ name: 'basic_skin_relief_2',
5
+ center: [4.311034835496287, 47.7308339427876],
6
+ zoom: 5.090386137353751,
7
+ bearing: 0,
8
+ pitch: 0,
9
+ sources: {
10
+ composite: {
11
+ url: 'mapbox://mapbox.mapbox-terrain-v2,mapbox.mapbox-streets-v7',
12
+ type: 'vector',
13
+ },
14
+ },
15
+ glyphs: 'mapbox://fonts/franckernewein/{fontstack}/{range}.pbf',
16
+ layers: [
17
+ {
18
+ id: 'background',
19
+ type: 'background',
20
+ interactive: true,
21
+ layout: {
22
+ visibility: 'visible',
23
+ },
24
+ paint: {
25
+ 'background-color': '#000',
26
+ },
27
+ },
28
+ {
29
+ id: 'landcover_crop',
30
+ type: 'fill',
31
+ metadata: {
32
+ 'mapbox:group': '1444855831248.8289',
33
+ },
34
+ source: 'composite',
35
+ 'source-layer': 'landcover',
36
+ maxzoom: 14,
37
+ interactive: true,
38
+ filter: ['==', 'class', 'crop'],
39
+ layout: {
40
+ visibility: 'visible',
41
+ },
42
+ paint: {
43
+ 'fill-color': 'hsl(0, 0%, 0%)',
44
+ 'fill-opacity': {
45
+ base: 1.5,
46
+ stops: [
47
+ [2, 1],
48
+ [14, 1],
49
+ ],
50
+ },
51
+ 'fill-antialias': true,
52
+ },
53
+ },
54
+ {
55
+ id: 'hillshade_highlight_light',
56
+ type: 'fill',
57
+ metadata: {
58
+ 'mapbox:group': 'e236111f0cd2a5450f11e2ac273318a0',
59
+ },
60
+ source: 'composite',
61
+ 'source-layer': 'hillshade',
62
+ maxzoom: 18,
63
+ interactive: true,
64
+ layout: {
65
+ visibility: 'visible',
66
+ },
67
+ paint: {
68
+ 'fill-color': 'hsl(0, 0%, 100%)',
69
+ 'fill-opacity': 0.03,
70
+ 'fill-antialias': false,
71
+ },
72
+ },
73
+ {
74
+ id: 'hillshade_highlight_shodow',
75
+ type: 'fill',
76
+ metadata: {
77
+ 'mapbox:group': 'e236111f0cd2a5450f11e2ac273318a0',
78
+ },
79
+ source: 'composite',
80
+ 'source-layer': 'hillshade',
81
+ interactive: true,
82
+ layout: {
83
+ visibility: 'visible',
84
+ },
85
+ paint: {
86
+ 'fill-color': 'hsl(0, 0%, 100%)',
87
+ 'fill-antialias': false,
88
+ 'fill-opacity': 0.01,
89
+ },
90
+ },
91
+ {
92
+ id: 'road',
93
+ type: 'line',
94
+ source: 'composite',
95
+ 'source-layer': 'road',
96
+ interactive: true,
97
+ layout: {
98
+ visibility: 'visible',
99
+ 'line-cap': 'round',
100
+ 'line-join': 'round',
101
+ },
102
+ paint: {
103
+ 'line-color': 'hsl(0, 0%, 24%)',
104
+ 'line-opacity': {
105
+ base: 1,
106
+ stops: [
107
+ [0, 0],
108
+ [2.2, 0],
109
+ [10, 0.7],
110
+ ],
111
+ },
112
+ },
113
+ },
114
+ {
115
+ id: 'water',
116
+ type: 'fill',
117
+ source: 'composite',
118
+ 'source-layer': 'water',
119
+ interactive: true,
120
+ layout: {
121
+ visibility: 'visible',
122
+ },
123
+ paint: {
124
+ 'fill-color': '#142561',
125
+ },
126
+ },
127
+ {
128
+ id: 'place-city-sm',
129
+ type: 'symbol',
130
+ metadata: {
131
+ 'mapbox:group': '1444862510685.128',
132
+ },
133
+ source: 'composite',
134
+ 'source-layer': 'place_label',
135
+ maxzoom: 13,
136
+ minzoom: 14,
137
+ interactive: true,
138
+ filter: ['all', ['!in', 'scalerank', 0, 1, 2, 3, 4, 5], ['==', 'type', 'city']],
139
+ layout: {
140
+ 'text-size': {
141
+ base: 1,
142
+ stops: [
143
+ [6, 12],
144
+ [14, 22],
145
+ ],
146
+ },
147
+ 'text-transform': 'none',
148
+ 'text-font': {
149
+ base: 1,
150
+ stops: [
151
+ [7, ['DIN Offc Pro Regular', 'Arial Unicode MS Regular']],
152
+ [8, ['DIN Offc Pro Medium', 'Arial Unicode MS Regular']],
153
+ ],
154
+ },
155
+ visibility: 'none',
156
+ 'text-offset': {
157
+ base: 1,
158
+ stops: [
159
+ [7.99, [0, -0.2]],
160
+ [8, [0, 0]],
161
+ ],
162
+ },
163
+ 'text-anchor': {
164
+ base: 1,
165
+ stops: [
166
+ [7, 'bottom'],
167
+ [8, 'center'],
168
+ ],
169
+ },
170
+ 'text-field': '{name_en}',
171
+ 'text-max-width': 7,
172
+ },
173
+ paint: {
174
+ 'text-color': '#000000',
175
+ 'text-halo-color': '#ffffff',
176
+ 'text-halo-width': 0,
177
+ 'icon-opacity': {
178
+ base: 1,
179
+ stops: [
180
+ [7.99, 1],
181
+ [8, 0],
182
+ ],
183
+ },
184
+ },
185
+ },
186
+ {
187
+ id: 'place-city-md-s',
188
+ type: 'symbol',
189
+ metadata: {
190
+ 'mapbox:group': '1444862510685.128',
191
+ },
192
+ source: 'composite',
193
+ 'source-layer': 'place_label',
194
+ maxzoom: 14,
195
+ minzoom: 13,
196
+ interactive: true,
197
+ filter: ['all', ['==', 'type', 'city'], ['in', 'ldir', 'E', 'S', 'SE', 'SW'], ['in', 'scalerank', 3, 4, 5]],
198
+ layout: {
199
+ visibility: 'visible',
200
+ 'text-field': '{name_en}',
201
+ 'text-anchor': {
202
+ base: 1,
203
+ stops: [
204
+ [7, 'top'],
205
+ [8, 'center'],
206
+ ],
207
+ },
208
+ 'text-offset': {
209
+ base: 1,
210
+ stops: [
211
+ [7.99, [0, 0.1]],
212
+ [8, [0, 0]],
213
+ ],
214
+ },
215
+ 'text-font': {
216
+ base: 1,
217
+ stops: [
218
+ [7, ['DIN Offc Pro Regular', 'Arial Unicode MS Regular']],
219
+ [8, ['DIN Offc Pro Medium', 'Arial Unicode MS Regular']],
220
+ ],
221
+ },
222
+ 'text-size': {
223
+ base: 0.9,
224
+ stops: [
225
+ [5, 12],
226
+ [12, 22],
227
+ ],
228
+ },
229
+ },
230
+ paint: {
231
+ 'icon-opacity': {
232
+ base: 1,
233
+ stops: [
234
+ [0, 0],
235
+ [3, 0],
236
+ [7, 1],
237
+ ],
238
+ },
239
+ 'text-halo-color': '#ffffff',
240
+ 'text-color': '#035898',
241
+ 'text-halo-blur': 0,
242
+ 'text-opacity': {
243
+ base: 1,
244
+ stops: [
245
+ [0, 0],
246
+ [3, 0],
247
+ [7, 1],
248
+ ],
249
+ },
250
+ },
251
+ },
252
+ {
253
+ id: 'place-city-md-n',
254
+ type: 'symbol',
255
+ metadata: {
256
+ 'mapbox:group': '1444862510685.128',
257
+ },
258
+ source: 'composite',
259
+ 'source-layer': 'place_label',
260
+ maxzoom: 14,
261
+ minzoom: 13,
262
+ interactive: true,
263
+ filter: ['all', ['==', 'type', 'city'], ['in', 'ldir', 'N', 'NE', 'NW', 'W'], ['in', 'scalerank', 3, 4, 5]],
264
+ layout: {
265
+ 'text-font': {
266
+ base: 1,
267
+ stops: [
268
+ [7, ['DIN Offc Pro Regular', 'Arial Unicode MS Regular']],
269
+ [8, ['DIN Offc Pro Medium', 'Arial Unicode MS Regular']],
270
+ ],
271
+ },
272
+ visibility: 'visible',
273
+ 'text-offset': {
274
+ base: 1,
275
+ stops: [
276
+ [7.99, [0, -0.25]],
277
+ [8, [0, 0]],
278
+ ],
279
+ },
280
+ 'text-anchor': {
281
+ base: 1,
282
+ stops: [
283
+ [7, 'bottom'],
284
+ [8, 'center'],
285
+ ],
286
+ },
287
+ 'text-field': '{name_en}',
288
+ 'text-max-width': 7,
289
+ 'text-size': {
290
+ base: 0.9,
291
+ stops: [
292
+ [5, 12],
293
+ [12, 22],
294
+ ],
295
+ },
296
+ },
297
+ paint: {
298
+ 'text-color': '#035898',
299
+ 'text-halo-color': '#ffffff',
300
+ 'text-halo-blur': 0,
301
+ 'icon-opacity': {
302
+ base: 1,
303
+ stops: [
304
+ [0, 0],
305
+ [3, 0],
306
+ [7, 1],
307
+ ],
308
+ },
309
+ 'text-halo-width': 0,
310
+ 'text-opacity': {
311
+ base: 1,
312
+ stops: [
313
+ [0, 0],
314
+ [3, 0],
315
+ [7, 1],
316
+ ],
317
+ },
318
+ },
319
+ },
320
+ {
321
+ id: 'place-city-lg-s',
322
+ type: 'symbol',
323
+ metadata: {
324
+ 'mapbox:group': '1444862510685.128',
325
+ },
326
+ source: 'composite',
327
+ 'source-layer': 'place_label',
328
+ minzoom: 14,
329
+ maxzoom: 15,
330
+ interactive: true,
331
+ filter: ['all', ['<=', 'scalerank', 2], ['==', 'type', 'city'], ['in', 'ldir', 'E', 'S', 'SE', 'SW']],
332
+ layout: {
333
+ 'text-font': {
334
+ base: 1,
335
+ stops: [
336
+ [7, ['DIN Offc Pro Regular', 'Arial Unicode MS Regular']],
337
+ [8, ['DIN Offc Pro Medium', 'Arial Unicode MS Regular']],
338
+ ],
339
+ },
340
+ visibility: 'visible',
341
+ 'text-offset': {
342
+ base: 1,
343
+ stops: [
344
+ [7.99, [0, 0.15]],
345
+ [8, [0, 0]],
346
+ ],
347
+ },
348
+ 'text-anchor': {
349
+ base: 1,
350
+ stops: [
351
+ [7, 'top'],
352
+ [8, 'center'],
353
+ ],
354
+ },
355
+ 'text-field': '{name_en}',
356
+ 'text-max-width': 7,
357
+ 'text-size': {
358
+ base: 0.9,
359
+ stops: [
360
+ [4, 12],
361
+ [10, 22],
362
+ ],
363
+ },
364
+ },
365
+ paint: {
366
+ 'text-color': '#035898',
367
+ 'text-halo-color': '#ffffff',
368
+ 'text-halo-width': 0,
369
+ 'icon-opacity': {
370
+ base: 1,
371
+ stops: [
372
+ [0, 0],
373
+ [3, 0],
374
+ [7, 1],
375
+ ],
376
+ },
377
+ 'text-halo-blur': 0,
378
+ 'text-opacity': {
379
+ base: 1,
380
+ stops: [
381
+ [0, 0],
382
+ [3, 0],
383
+ [5, 1],
384
+ ],
385
+ },
386
+ },
387
+ },
388
+ {
389
+ id: 'place-city-lg-n',
390
+ type: 'symbol',
391
+ metadata: {
392
+ 'mapbox:group': '1444862510685.128',
393
+ },
394
+ source: 'composite',
395
+ 'source-layer': 'place_label',
396
+ minzoom: 13,
397
+ maxzoom: 14,
398
+ interactive: true,
399
+ filter: ['all', ['<=', 'scalerank', 2], ['==', 'type', 'city'], ['in', 'ldir', 'N', 'NE', 'NW', 'W']],
400
+ layout: {
401
+ 'text-size': {
402
+ base: 0.9,
403
+ stops: [
404
+ [4, 12],
405
+ [10, 22],
406
+ ],
407
+ },
408
+ 'text-font': {
409
+ base: 1,
410
+ stops: [
411
+ [7, ['DIN Offc Pro Regular', 'Arial Unicode MS Regular']],
412
+ [8, ['DIN Offc Pro Medium', 'Arial Unicode MS Regular']],
413
+ ],
414
+ },
415
+ visibility: 'visible',
416
+ 'text-offset': {
417
+ base: 1,
418
+ stops: [
419
+ [7.99, [0, -0.25]],
420
+ [8, [0, 0]],
421
+ ],
422
+ },
423
+ 'text-anchor': {
424
+ base: 1,
425
+ stops: [
426
+ [7, 'bottom'],
427
+ [8, 'center'],
428
+ ],
429
+ },
430
+ 'text-field': '{name_en}',
431
+ 'text-max-width': 7,
432
+ 'icon-image': 'round_city',
433
+ },
434
+ paint: {
435
+ 'text-color': '#035898',
436
+ 'text-opacity': {
437
+ base: 1,
438
+ stops: [
439
+ [0, 0],
440
+ [3, 0],
441
+ [7, 1],
442
+ ],
443
+ },
444
+ 'text-halo-color': '#ffffff',
445
+ 'text-halo-width': 0,
446
+ 'icon-opacity': {
447
+ base: 1,
448
+ stops: [
449
+ [0, 0],
450
+ [3, 0],
451
+ [7, 1],
452
+ ],
453
+ },
454
+ 'text-halo-blur': 0,
455
+ },
456
+ },
457
+ {
458
+ id: 'country-label-sm',
459
+ type: 'symbol',
460
+ metadata: {
461
+ 'mapbox:group': '1444856144497.7825',
462
+ },
463
+ source: 'composite',
464
+ 'source-layer': 'country_label',
465
+ minzoom: 13,
466
+ maxzoom: 14,
467
+ interactive: true,
468
+ filter: ['>=', 'scalerank', 5],
469
+ layout: {
470
+ 'text-field': '{name_en}',
471
+ visibility: 'visible',
472
+ 'text-max-width': 6,
473
+ 'text-font': ['DIN Offc Pro Medium', 'Arial Unicode MS Regular'],
474
+ 'text-size': {
475
+ base: 0.9,
476
+ stops: [
477
+ [5, 14],
478
+ [9, 22],
479
+ ],
480
+ },
481
+ },
482
+ paint: {
483
+ 'text-color': '#8f7c79',
484
+ 'text-halo-color': {
485
+ base: 1,
486
+ stops: [
487
+ [2, 'rgba(255,255,255,0.75)'],
488
+ [3, '#ffffff'],
489
+ ],
490
+ },
491
+ 'text-halo-width': 0,
492
+ 'text-opacity': {
493
+ base: 1,
494
+ stops: [
495
+ [0, 0],
496
+ [3, 0],
497
+ [5, 1],
498
+ ],
499
+ },
500
+ },
501
+ },
502
+ {
503
+ id: 'country-label-md',
504
+ type: 'symbol',
505
+ metadata: {
506
+ 'mapbox:group': '1444856144497.7825',
507
+ },
508
+ source: 'composite',
509
+ 'source-layer': 'country_label',
510
+ minzoom: 17,
511
+ maxzoom: 18,
512
+ interactive: true,
513
+ filter: ['in', 'scalerank', 3, 4],
514
+ layout: {
515
+ 'text-field': {
516
+ base: 1,
517
+ stops: [
518
+ [0, '{code}'],
519
+ [2, '{name_en}'],
520
+ ],
521
+ },
522
+ visibility: 'visible',
523
+ 'text-max-width': 6,
524
+ 'text-font': ['DIN Offc Pro Medium', 'Arial Unicode MS Regular'],
525
+ 'text-size': {
526
+ base: 1,
527
+ stops: [
528
+ [3, 10],
529
+ [8, 24],
530
+ ],
531
+ },
532
+ },
533
+ paint: {
534
+ 'text-color': '#8f7c79',
535
+ 'text-halo-color': {
536
+ base: 1,
537
+ stops: [
538
+ [2, 'rgba(255,255,255,0.75)'],
539
+ [3, '#ffffff'],
540
+ ],
541
+ },
542
+ 'text-halo-width': 0,
543
+ 'text-opacity': {
544
+ base: 1,
545
+ stops: [
546
+ [0, 0],
547
+ [3, 0],
548
+ [5, 1],
549
+ ],
550
+ },
551
+ },
552
+ },
553
+ {
554
+ id: 'country-label-lg',
555
+ type: 'symbol',
556
+ metadata: {
557
+ 'mapbox:group': '1444856144497.7825',
558
+ },
559
+ source: 'composite',
560
+ 'source-layer': 'country_label',
561
+ minzoom: 16,
562
+ maxzoom: 17,
563
+ interactive: true,
564
+ filter: ['in', 'scalerank', 1, 2],
565
+ layout: {
566
+ 'text-field': '{name_en}',
567
+ visibility: 'visible',
568
+ 'text-max-width': {
569
+ base: 1,
570
+ stops: [
571
+ [0, 5],
572
+ [3, 6],
573
+ ],
574
+ },
575
+ 'text-font': ['DIN Offc Pro Medium', 'Arial Unicode MS Regular'],
576
+ 'text-size': {
577
+ base: 1,
578
+ stops: [
579
+ [1, 10],
580
+ [6, 24],
581
+ ],
582
+ },
583
+ },
584
+ paint: {
585
+ 'text-color': 'hsl(8, 9%, 52%)',
586
+ 'text-halo-color': {
587
+ base: 1,
588
+ stops: [
589
+ [2, 'rgba(255,255,255,0.35)'],
590
+ [3, '#ffffff'],
591
+ ],
592
+ },
593
+ 'text-halo-width': {
594
+ base: 1,
595
+ stops: [
596
+ [0, 0],
597
+ [22, 0],
598
+ ],
599
+ },
600
+ 'text-opacity': {
601
+ base: 1,
602
+ stops: [
603
+ [0, 0],
604
+ [3, 0],
605
+ [5, 1],
606
+ ],
607
+ },
608
+ },
609
+ },
610
+ {
611
+ id: 'state-label-sm',
612
+ type: 'symbol',
613
+ metadata: {
614
+ 'mapbox:group': '1444856151690.9143',
615
+ },
616
+ source: 'composite',
617
+ 'source-layer': 'state_label',
618
+ minzoom: 13,
619
+ maxzoom: 19,
620
+ interactive: true,
621
+ filter: ['<', 'area', 20000],
622
+ layout: {
623
+ 'text-size': {
624
+ base: 1,
625
+ stops: [
626
+ [6, 10],
627
+ [9, 14],
628
+ ],
629
+ },
630
+ 'text-allow-overlap': false,
631
+ 'text-ignore-placement': false,
632
+ 'text-transform': 'uppercase',
633
+ 'text-font': ['DIN Offc Pro Bold', 'Arial Unicode MS Bold'],
634
+ visibility: 'visible',
635
+ 'text-field': {
636
+ base: 1,
637
+ stops: [
638
+ [0, '{abbr}'],
639
+ [6, '{name_en}'],
640
+ ],
641
+ },
642
+ 'text-letter-spacing': 0.15,
643
+ 'text-max-width': 5,
644
+ },
645
+ paint: {
646
+ 'text-opacity': {
647
+ base: 1,
648
+ stops: [
649
+ [0, 0],
650
+ [3, 0],
651
+ [7, 1],
652
+ ],
653
+ },
654
+ 'text-color': '#035898',
655
+ 'text-halo-color': '#ffffff',
656
+ 'text-halo-width': 0,
657
+ },
658
+ },
659
+ {
660
+ id: 'state-label-md',
661
+ type: 'symbol',
662
+ metadata: {
663
+ 'mapbox:group': '1444856151690.9143',
664
+ },
665
+ source: 'composite',
666
+ 'source-layer': 'state_label',
667
+ minzoom: 13,
668
+ maxzoom: 18,
669
+ interactive: true,
670
+ filter: ['all', ['<', 'area', 80000], ['>=', 'area', 20000]],
671
+ layout: {
672
+ 'text-size': {
673
+ base: 1,
674
+ stops: [
675
+ [5, 10],
676
+ [8, 16],
677
+ ],
678
+ },
679
+ 'text-allow-overlap': false,
680
+ 'text-ignore-placement': false,
681
+ 'text-transform': 'uppercase',
682
+ 'text-font': ['DIN Offc Pro Bold', 'Arial Unicode MS Bold'],
683
+ visibility: 'visible',
684
+ 'text-field': {
685
+ base: 1,
686
+ stops: [
687
+ [0, '{abbr}'],
688
+ [5, '{name_en}'],
689
+ ],
690
+ },
691
+ 'text-letter-spacing': 0.15,
692
+ 'text-max-width': 6,
693
+ },
694
+ paint: {
695
+ 'text-opacity': {
696
+ base: 1,
697
+ stops: [
698
+ [0, 0],
699
+ [2, 0],
700
+ [7, 1],
701
+ ],
702
+ },
703
+ 'text-color': '#035898',
704
+ 'text-halo-color': '#ffffff',
705
+ 'text-halo-width': 0,
706
+ },
707
+ },
708
+ {
709
+ id: 'state-label-lg',
710
+ type: 'symbol',
711
+ metadata: {
712
+ 'mapbox:group': '1444856151690.9143',
713
+ },
714
+ source: 'composite',
715
+ 'source-layer': 'state_label',
716
+ minzoom: 13,
717
+ maxzoom: 17,
718
+ interactive: true,
719
+ filter: ['>=', 'area', 80000],
720
+ layout: {
721
+ 'text-size': {
722
+ base: 1,
723
+ stops: [
724
+ [4, 10],
725
+ [7, 18],
726
+ ],
727
+ },
728
+ 'text-allow-overlap': false,
729
+ 'text-ignore-placement': false,
730
+ 'text-transform': 'uppercase',
731
+ 'text-font': ['DIN Offc Pro Bold', 'Arial Unicode MS Bold'],
732
+ 'text-padding': 1,
733
+ visibility: 'visible',
734
+ 'text-field': {
735
+ base: 1,
736
+ stops: [
737
+ [0, '{abbr}'],
738
+ [4, '{name_en}'],
739
+ ],
740
+ },
741
+ 'text-letter-spacing': 0.15,
742
+ 'text-max-width': 6,
743
+ },
744
+ paint: {
745
+ 'text-opacity': {
746
+ base: 1,
747
+ stops: [
748
+ [0, 0],
749
+ [3, 0],
750
+ [7, 1],
751
+ ],
752
+ },
753
+ 'text-color': '#035898',
754
+ 'text-halo-color': '#ffffff',
755
+ 'text-halo-width': 0,
756
+ },
757
+ },
758
+ {
759
+ id: 'admin-2-boundaries',
760
+ type: 'line',
761
+ metadata: {
762
+ 'mapbox:group': '1444934295202.7542',
763
+ },
764
+ source: 'composite',
765
+ 'source-layer': 'admin',
766
+ minzoom: 1,
767
+ interactive: true,
768
+ filter: ['all', ['==', 'admin_level', 2], ['==', 'disputed', 0], ['==', 'maritime', 0]],
769
+ layout: {
770
+ visibility: 'visible',
771
+ 'line-join': 'round',
772
+ 'line-cap': 'round',
773
+ 'line-round-limit': 2,
774
+ },
775
+ paint: {
776
+ 'line-color': {
777
+ base: 1,
778
+ stops: [
779
+ [0, 'hsla(8, 12%, 41%, 0)'],
780
+ [10, '#035898'],
781
+ ],
782
+ },
783
+ 'line-width': {
784
+ base: 1,
785
+ stops: [
786
+ [3, 0.75],
787
+ [10, 3],
788
+ ],
789
+ },
790
+ 'line-opacity': {
791
+ base: 1,
792
+ stops: [
793
+ [0, 0],
794
+ [3, 0],
795
+ [5, 1],
796
+ ],
797
+ },
798
+ },
799
+ },
800
+ {
801
+ id: 'building',
802
+ type: 'fill',
803
+ source: 'composite',
804
+ 'source-layer': 'building',
805
+ interactive: true,
806
+ filter: ['has', 'underground'],
807
+ layout: {
808
+ visibility: 'visible',
809
+ },
810
+ paint: {
811
+ 'fill-color': 'hsl(0, 0%, 100%)',
812
+ 'fill-antialias': false,
813
+ 'fill-opacity': 0.15,
814
+ 'fill-translate': {
815
+ base: 1,
816
+ stops: [
817
+ [0, [0, 0]],
818
+ [22, [0, 0]],
819
+ ],
820
+ },
821
+ 'fill-translate-anchor': {
822
+ base: 1,
823
+ stops: [
824
+ [3, 'map'],
825
+ [6, 'map'],
826
+ ],
827
+ },
828
+ },
829
+ },
830
+ ],
831
+ };
832
+ //# sourceMappingURL=map-style.js.map