@arenarium/maps 1.1.3 → 1.2.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.
@@ -1,1791 +0,0 @@
1
- var r = Object.defineProperty;
2
- var s = (l, e, t) => e in l ? r(l, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : l[e] = t;
3
- var n = (l, e, t) => s(l, typeof e != "symbol" ? e + "" : e, t);
4
- import { g as p } from "./attribution-BYiDRQF4.js";
5
- class y {
6
- constructor(e, t, o) {
7
- n(this, "MapClass");
8
- n(this, "MapMarkerClass");
9
- n(this, "map");
10
- this.MapClass = e, this.MapMarkerClass = t, this.map = new this.MapClass({
11
- ...o,
12
- minZoom: Math.max(o.minZoom ?? 0, 0),
13
- maxZoom: Math.min(o.maxZoom ?? 22, 24),
14
- style: o.style ?? "https://tiles.openfreemap.org/styles/liberty",
15
- pitchWithRotate: !1,
16
- attributionControl: o.attributionControl ?? {
17
- compact: !1,
18
- customAttribution: p()
19
- }
20
- }), this.map.dragRotate.disable(), this.map.keyboard.disable(), this.map.touchZoomRotate.disableRotation(), this.map.touchPitch.disable(), this.map.on("load", () => {
21
- const a = this.map.getContainer();
22
- a != null && (a.style.zIndex = "0");
23
- const i = document.getElementsByClassName("maplibregl-ctrl-bottom-right")[0];
24
- i != null && (i.style.zIndex = Number.MAX_SAFE_INTEGER.toString());
25
- });
26
- }
27
- getParameters() {
28
- return {
29
- mapSize: 512,
30
- zoomMin: this.map.getMinZoom() ?? 0,
31
- zoomMax: this.map.getMaxZoom() ?? 22,
32
- zoomScale: 10
33
- };
34
- }
35
- getMap() {
36
- return this.map;
37
- }
38
- getContainer() {
39
- return this.map.getContainer();
40
- }
41
- getZoom() {
42
- return this.map.getZoom();
43
- }
44
- getBounds() {
45
- const e = this.map.getBounds(), t = e.getSouthWest(), o = e.getNorthEast();
46
- return { sw: t, ne: o };
47
- }
48
- panBy(e, t) {
49
- this.map.panBy([e, t]);
50
- }
51
- createMarker(e, t, o) {
52
- const a = new this.MapMarkerClass({ element: e });
53
- return a.setLngLat([o, t]), {
54
- instance: a,
55
- inserted: () => a._map != null,
56
- insert: () => a.addTo(this.map),
57
- remove: () => a.remove(),
58
- update: (i) => a.getElement().style.zIndex = i.toString()
59
- };
60
- }
61
- }
62
- const g = {
63
- version: 8,
64
- sources: {
65
- openmaptiles: {
66
- type: "vector",
67
- url: "https://tiles.openfreemap.org/planet"
68
- }
69
- },
70
- glyphs: "https://tiles.openfreemap.org/fonts/{fontstack}/{range}.pbf",
71
- layers: [
72
- {
73
- id: "background",
74
- type: "background",
75
- paint: { "background-color": "rgba(120, 120, 120, 1)" }
76
- },
77
- {
78
- id: "park",
79
- type: "fill",
80
- source: "openmaptiles",
81
- "source-layer": "park",
82
- filter: ["in", ["geometry-type"], ["literal", ["Polygon", "MultiPolygon"]]],
83
- paint: { "fill-color": "rgba(128, 128, 128, 1)" }
84
- },
85
- {
86
- id: "water",
87
- type: "fill",
88
- source: "openmaptiles",
89
- "source-layer": "water",
90
- filter: ["all", ["in", ["geometry-type"], ["literal", ["Polygon", "MultiPolygon"]]], ["!=", ["get", "brunnel"], "tunnel"]],
91
- paint: { "fill-antialias": !0, "fill-color": "rgba(56, 56, 56, 1)" }
92
- },
93
- {
94
- id: "landcover_ice_shelf",
95
- type: "fill",
96
- source: "openmaptiles",
97
- "source-layer": "landcover",
98
- maxzoom: 8,
99
- filter: ["all", ["in", ["geometry-type"], ["literal", ["Polygon", "MultiPolygon"]]], ["==", ["get", "subclass"], "ice_shelf"]],
100
- paint: { "fill-color": "rgba(128, 128, 128, 1)", "fill-opacity": 0.7 }
101
- },
102
- {
103
- id: "landcover_glacier",
104
- type: "fill",
105
- source: "openmaptiles",
106
- "source-layer": "landcover",
107
- maxzoom: 8,
108
- filter: ["all", ["in", ["geometry-type"], ["literal", ["Polygon", "MultiPolygon"]]], ["==", ["get", "subclass"], "glacier"]],
109
- paint: {
110
- "fill-color": "rgba(153, 153, 153, 1)",
111
- "fill-opacity": ["interpolate", ["linear"], ["zoom"], 0, 1, 8, 0.5]
112
- }
113
- },
114
- {
115
- id: "landuse_residential",
116
- type: "fill",
117
- source: "openmaptiles",
118
- "source-layer": "landuse",
119
- maxzoom: 16,
120
- filter: ["all", ["in", ["geometry-type"], ["literal", ["Polygon", "MultiPolygon"]]], ["==", ["get", "class"], "residential"]],
121
- paint: {
122
- "fill-color": "rgba(104, 104, 104, 1)",
123
- "fill-opacity": ["interpolate", ["exponential", 0.6], ["zoom"], 8, 0.8, 9, 0.6]
124
- }
125
- },
126
- {
127
- id: "landcover_wood",
128
- type: "fill",
129
- source: "openmaptiles",
130
- "source-layer": "landcover",
131
- minzoom: 10,
132
- filter: ["all", ["in", ["geometry-type"], ["literal", ["Polygon", "MultiPolygon"]]], ["==", ["get", "class"], "wood"]],
133
- paint: {
134
- "fill-color": "rgba(128, 128, 128, 1)",
135
- "fill-opacity": ["interpolate", ["linear"], ["zoom"], 8, 0, 12, 1]
136
- }
137
- },
138
- {
139
- id: "waterway",
140
- type: "line",
141
- source: "openmaptiles",
142
- "source-layer": "waterway",
143
- filter: ["==", ["geometry-type"], "LineString"],
144
- paint: { "line-color": "rgba(56, 56, 56, 1)" }
145
- },
146
- {
147
- id: "building",
148
- type: "fill",
149
- source: "openmaptiles",
150
- "source-layer": "building",
151
- minzoom: 12,
152
- paint: {
153
- "fill-antialias": !0,
154
- "fill-color": "rgba(136, 136, 136, 1)",
155
- "fill-outline-color": "rgba(102, 102, 102, 1)"
156
- }
157
- },
158
- {
159
- id: "tunnel_motorway_casing",
160
- type: "line",
161
- source: "openmaptiles",
162
- "source-layer": "transportation",
163
- minzoom: 6,
164
- filter: ["all", ["==", ["geometry-type"], "LineString"], ["all", ["==", ["get", "brunnel"], "tunnel"], ["==", ["get", "class"], "motorway"]]],
165
- layout: { "line-cap": "butt", "line-join": "miter" },
166
- paint: {
167
- "line-color": "rgba(68, 68, 68, 1)",
168
- "line-opacity": 1,
169
- "line-width": ["interpolate", ["exponential", 1.4], ["zoom"], 5.8, 0, 6, 3, 20, 40]
170
- }
171
- },
172
- {
173
- id: "tunnel_motorway_inner",
174
- type: "line",
175
- source: "openmaptiles",
176
- "source-layer": "transportation",
177
- minzoom: 6,
178
- filter: ["all", ["==", ["geometry-type"], "LineString"], ["all", ["==", ["get", "brunnel"], "tunnel"], ["==", ["get", "class"], "motorway"]]],
179
- layout: { "line-cap": "round", "line-join": "round" },
180
- paint: {
181
- "line-color": "rgba(85, 85, 85, 1)",
182
- "line-width": ["interpolate", ["exponential", 1.4], ["zoom"], 4, 2, 6, 1.3, 20, 30]
183
- }
184
- },
185
- {
186
- id: "aeroway-taxiway",
187
- type: "line",
188
- source: "openmaptiles",
189
- "source-layer": "aeroway",
190
- minzoom: 12,
191
- filter: ["match", ["get", "class"], ["taxiway"], !0, !1],
192
- layout: { "line-cap": "round", "line-join": "round" },
193
- paint: {
194
- "line-color": "rgba(85, 85, 85, 1)",
195
- "line-opacity": 1,
196
- "line-width": ["interpolate", ["exponential", 1.55], ["zoom"], 13, 1.8, 20, 20]
197
- }
198
- },
199
- {
200
- id: "aeroway-runway-casing",
201
- type: "line",
202
- source: "openmaptiles",
203
- "source-layer": "aeroway",
204
- minzoom: 11,
205
- filter: ["match", ["get", "class"], ["runway"], !0, !1],
206
- layout: { "line-cap": "round", "line-join": "round" },
207
- paint: {
208
- "line-color": "rgba(85, 85, 85, 1)",
209
- "line-opacity": 1,
210
- "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 11, 6, 17, 55]
211
- }
212
- },
213
- {
214
- id: "aeroway-area",
215
- type: "fill",
216
- source: "openmaptiles",
217
- "source-layer": "aeroway",
218
- minzoom: 4,
219
- filter: [
220
- "all",
221
- ["in", ["geometry-type"], ["literal", ["Polygon", "MultiPolygon"]]],
222
- ["match", ["get", "class"], ["runway", "taxiway"], !0, !1]
223
- ],
224
- paint: {
225
- "fill-color": "rgba(128, 128, 128, 1)",
226
- "fill-opacity": ["interpolate", ["linear"], ["zoom"], 13, 0, 14, 1]
227
- }
228
- },
229
- {
230
- id: "aeroway-runway",
231
- type: "line",
232
- source: "openmaptiles",
233
- "source-layer": "aeroway",
234
- minzoom: 11,
235
- filter: ["all", ["match", ["get", "class"], ["runway"], !0, !1], ["==", ["geometry-type"], "LineString"]],
236
- layout: { "line-cap": "round", "line-join": "round" },
237
- paint: {
238
- "line-color": "rgba(68, 68, 68, 1)",
239
- "line-opacity": 1,
240
- "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 11, 4, 17, 50]
241
- }
242
- },
243
- {
244
- id: "road_area_pier",
245
- type: "fill",
246
- source: "openmaptiles",
247
- "source-layer": "transportation",
248
- filter: ["all", ["in", ["geometry-type"], ["literal", ["Polygon", "MultiPolygon"]]], ["==", ["get", "class"], "pier"]],
249
- paint: { "fill-antialias": !0, "fill-color": "rgba(50, 50, 50, 1)" }
250
- },
251
- {
252
- id: "road_pier",
253
- type: "line",
254
- source: "openmaptiles",
255
- "source-layer": "transportation",
256
- filter: ["all", ["==", ["geometry-type"], "LineString"], ["match", ["get", "class"], ["pier"], !0, !1]],
257
- layout: { "line-cap": "round", "line-join": "round" },
258
- paint: {
259
- "line-color": "rgba(52, 52, 52, 1)",
260
- "line-width": ["interpolate", ["exponential", 1.2], ["zoom"], 15, 1, 17, 4]
261
- }
262
- },
263
- {
264
- id: "highway_path",
265
- type: "line",
266
- source: "openmaptiles",
267
- "source-layer": "transportation",
268
- filter: ["all", ["==", ["geometry-type"], "LineString"], ["==", ["get", "class"], "path"]],
269
- layout: { "line-cap": "round", "line-join": "round" },
270
- paint: {
271
- "line-color": "rgba(88, 88, 88, 1)",
272
- "line-opacity": 0.9,
273
- "line-width": ["interpolate", ["exponential", 1.2], ["zoom"], 13, 1, 20, 10]
274
- }
275
- },
276
- {
277
- id: "highway_minor",
278
- type: "line",
279
- source: "openmaptiles",
280
- "source-layer": "transportation",
281
- minzoom: 8,
282
- filter: ["all", ["==", ["geometry-type"], "LineString"], ["match", ["get", "class"], ["minor", "service", "track"], !0, !1]],
283
- layout: { "line-cap": "round", "line-join": "round" },
284
- paint: {
285
- "line-opacity": 0.9,
286
- "line-width": ["interpolate", ["exponential", 1.55], ["zoom"], 13, 1.8, 20, 20],
287
- "line-color": "rgba(102, 102, 102, 1)"
288
- }
289
- },
290
- {
291
- id: "highway_major_casing",
292
- type: "line",
293
- source: "openmaptiles",
294
- "source-layer": "transportation",
295
- minzoom: 11,
296
- filter: ["all", ["==", ["geometry-type"], "LineString"], ["match", ["get", "class"], ["primary", "secondary", "tertiary", "trunk"], !0, !1]],
297
- layout: { "line-cap": "butt", "line-join": "miter" },
298
- paint: {
299
- "line-dasharray": [12, 0],
300
- "line-width": ["interpolate", ["exponential", 1.3], ["zoom"], 10, 3, 20, 23],
301
- "line-color": "rgba(85, 85, 85, 1)"
302
- }
303
- },
304
- {
305
- id: "highway_major_inner",
306
- type: "line",
307
- source: "openmaptiles",
308
- "source-layer": "transportation",
309
- minzoom: 11,
310
- filter: ["all", ["==", ["geometry-type"], "LineString"], ["match", ["get", "class"], ["primary", "secondary", "tertiary", "trunk"], !0, !1]],
311
- layout: { "line-cap": "round", "line-join": "round" },
312
- paint: {
313
- "line-color": "rgba(102, 102, 102, 1)",
314
- "line-width": ["interpolate", ["exponential", 1.3], ["zoom"], 10, 2, 20, 20]
315
- }
316
- },
317
- {
318
- id: "highway_major_subtle",
319
- type: "line",
320
- source: "openmaptiles",
321
- "source-layer": "transportation",
322
- maxzoom: 11,
323
- filter: ["all", ["==", ["geometry-type"], "LineString"], ["match", ["get", "class"], ["primary", "secondary", "tertiary", "trunk"], !0, !1]],
324
- layout: { "line-cap": "round", "line-join": "round" },
325
- paint: { "line-width": 2, "line-color": "rgba(85, 85, 85, 1)" }
326
- },
327
- {
328
- id: "highway_motorway_casing",
329
- type: "line",
330
- source: "openmaptiles",
331
- "source-layer": "transportation",
332
- minzoom: 6,
333
- filter: [
334
- "all",
335
- ["==", ["geometry-type"], "LineString"],
336
- ["all", ["match", ["get", "brunnel"], ["bridge", "tunnel"], !1, !0], ["==", ["get", "class"], "motorway"]]
337
- ],
338
- layout: { "line-cap": "butt", "line-join": "miter" },
339
- paint: {
340
- "line-color": "rgba(68, 68, 68, 1)",
341
- "line-dasharray": [2, 0],
342
- "line-opacity": 1,
343
- "line-width": ["interpolate", ["exponential", 1.4], ["zoom"], 5.8, 0, 6, 3, 20, 40]
344
- }
345
- },
346
- {
347
- id: "highway_motorway_inner",
348
- type: "line",
349
- source: "openmaptiles",
350
- "source-layer": "transportation",
351
- minzoom: 6,
352
- filter: [
353
- "all",
354
- ["==", ["geometry-type"], "LineString"],
355
- ["all", ["match", ["get", "brunnel"], ["bridge", "tunnel"], !1, !0], ["==", ["get", "class"], "motorway"]]
356
- ],
357
- layout: { "line-cap": "round", "line-join": "round" },
358
- paint: {
359
- "line-color": ["interpolate", ["linear"], ["zoom"], 5.8, "rgba(102, 102, 102, 1)", 6, "rgba(85, 85, 85, 1)"],
360
- "line-width": ["interpolate", ["exponential", 1.4], ["zoom"], 4, 2, 6, 1.3, 20, 30]
361
- }
362
- },
363
- {
364
- id: "highway_motorway_subtle",
365
- type: "line",
366
- source: "openmaptiles",
367
- "source-layer": "transportation",
368
- maxzoom: 6,
369
- filter: ["all", ["==", ["geometry-type"], "LineString"], ["==", ["get", "class"], "motorway"]],
370
- layout: { "line-cap": "round", "line-join": "round" },
371
- paint: {
372
- "line-color": "rgba(102, 102, 102, 1)",
373
- "line-width": ["interpolate", ["exponential", 1.4], ["zoom"], 4, 2, 6, 1.3]
374
- }
375
- },
376
- {
377
- id: "railway_transit",
378
- type: "line",
379
- source: "openmaptiles",
380
- "source-layer": "transportation",
381
- minzoom: 16,
382
- filter: [
383
- "all",
384
- ["==", ["geometry-type"], "LineString"],
385
- ["all", ["==", ["get", "class"], "transit"], ["match", ["get", "brunnel"], ["tunnel"], !1, !0]]
386
- ],
387
- layout: { "line-join": "round" },
388
- paint: { "line-color": "rgba(85, 85, 85, 1)", "line-width": 3 }
389
- },
390
- {
391
- id: "railway_transit_dashline",
392
- type: "line",
393
- source: "openmaptiles",
394
- "source-layer": "transportation",
395
- minzoom: 16,
396
- filter: [
397
- "all",
398
- ["==", ["geometry-type"], "LineString"],
399
- ["all", ["==", ["get", "class"], "transit"], ["match", ["get", "brunnel"], ["tunnel"], !1, !0]]
400
- ],
401
- layout: { "line-join": "round" },
402
- paint: {
403
- "line-color": "rgba(68, 68, 68, 1)",
404
- "line-dasharray": [3, 3],
405
- "line-width": 2
406
- }
407
- },
408
- {
409
- id: "railway_service",
410
- type: "line",
411
- source: "openmaptiles",
412
- "source-layer": "transportation",
413
- minzoom: 16,
414
- filter: ["all", ["==", ["geometry-type"], "LineString"], ["all", ["==", ["get", "class"], "rail"], ["has", "service"]]],
415
- layout: { "line-join": "round" },
416
- paint: { "line-color": "rgba(102, 102, 102, 1)", "line-width": 3 }
417
- },
418
- {
419
- id: "railway_service_dashline",
420
- type: "line",
421
- source: "openmaptiles",
422
- "source-layer": "transportation",
423
- minzoom: 16,
424
- filter: ["all", ["==", ["geometry-type"], "LineString"], ["==", ["get", "class"], "rail"], ["has", "service"]],
425
- layout: { "line-join": "round" },
426
- paint: {
427
- "line-color": "rgba(85, 85, 85, 1)",
428
- "line-dasharray": [3, 3],
429
- "line-width": 2
430
- }
431
- },
432
- {
433
- id: "railway",
434
- type: "line",
435
- source: "openmaptiles",
436
- "source-layer": "transportation",
437
- minzoom: 13,
438
- filter: ["all", ["==", ["geometry-type"], "LineString"], ["all", ["!", ["has", "service"]], ["==", ["get", "class"], "rail"]]],
439
- layout: { "line-join": "round" },
440
- paint: {
441
- "line-color": "rgba(85, 85, 85, 1)",
442
- "line-width": ["interpolate", ["exponential", 1.3], ["zoom"], 16, 3, 20, 7]
443
- }
444
- },
445
- {
446
- id: "railway_dashline",
447
- type: "line",
448
- source: "openmaptiles",
449
- "source-layer": "transportation",
450
- minzoom: 13,
451
- filter: ["all", ["==", ["geometry-type"], "LineString"], ["all", ["!", ["has", "service"]], ["==", ["get", "class"], "rail"]]],
452
- layout: { "line-join": "round" },
453
- paint: {
454
- "line-color": "rgba(68, 68, 68, 1)",
455
- "line-dasharray": [3, 3],
456
- "line-width": ["interpolate", ["exponential", 1.3], ["zoom"], 16, 2, 20, 6]
457
- }
458
- },
459
- {
460
- id: "highway_motorway_bridge_casing",
461
- type: "line",
462
- source: "openmaptiles",
463
- "source-layer": "transportation",
464
- minzoom: 6,
465
- filter: ["all", ["==", ["geometry-type"], "LineString"], ["all", ["==", ["get", "brunnel"], "bridge"], ["==", ["get", "class"], "motorway"]]],
466
- layout: { "line-cap": "butt", "line-join": "miter" },
467
- paint: {
468
- "line-color": "rgba(68, 68, 68, 1)",
469
- "line-dasharray": [2, 0],
470
- "line-opacity": 1,
471
- "line-width": ["interpolate", ["exponential", 1.4], ["zoom"], 5.8, 0, 6, 5, 20, 45]
472
- }
473
- },
474
- {
475
- id: "highway_motorway_bridge_inner",
476
- type: "line",
477
- source: "openmaptiles",
478
- "source-layer": "transportation",
479
- minzoom: 6,
480
- filter: ["all", ["==", ["geometry-type"], "LineString"], ["all", ["==", ["get", "brunnel"], "bridge"], ["==", ["get", "class"], "motorway"]]],
481
- layout: { "line-cap": "round", "line-join": "round" },
482
- paint: {
483
- "line-color": ["interpolate", ["linear"], ["zoom"], 5.8, "rgba(102, 102, 102, 1)", 6, "rgba(85, 85, 85, 1)"],
484
- "line-width": ["interpolate", ["exponential", 1.4], ["zoom"], 4, 2, 6, 1.3, 20, 30]
485
- }
486
- },
487
- {
488
- id: "boundary_3",
489
- type: "line",
490
- source: "openmaptiles",
491
- "source-layer": "boundary",
492
- minzoom: 8,
493
- filter: [
494
- "all",
495
- [">=", ["get", "admin_level"], 3],
496
- ["<=", ["get", "admin_level"], 6],
497
- ["!=", ["get", "maritime"], 1],
498
- ["!=", ["get", "disputed"], 1],
499
- ["!", ["has", "claimed_by"]]
500
- ],
501
- paint: {
502
- "line-color": "rgba(68, 68, 68, 1)",
503
- "line-dasharray": [1, 1],
504
- "line-width": ["interpolate", ["linear"], ["zoom"], 7, 1, 11, 2]
505
- }
506
- },
507
- {
508
- id: "boundary_2",
509
- type: "line",
510
- source: "openmaptiles",
511
- "source-layer": "boundary",
512
- filter: ["all", ["==", ["get", "admin_level"], 2], ["!=", ["get", "maritime"], 1], ["!=", ["get", "disputed"], 1], ["!", ["has", "claimed_by"]]],
513
- layout: { "line-cap": "round", "line-join": "round" },
514
- paint: {
515
- "line-color": "rgba(51, 51, 51, 1)",
516
- "line-opacity": ["interpolate", ["linear"], ["zoom"], 0, 0.4, 4, 1],
517
- "line-width": ["interpolate", ["linear"], ["zoom"], 3, 1, 5, 1.2, 12, 3]
518
- }
519
- },
520
- {
521
- id: "boundary_disputed",
522
- type: "line",
523
- source: "openmaptiles",
524
- "source-layer": "boundary",
525
- filter: ["all", ["!=", ["get", "maritime"], 1], ["==", ["get", "disputed"], 1]],
526
- paint: {
527
- "line-color": "rgba(51, 51, 51, 1)",
528
- "line-dasharray": [1, 2],
529
- "line-width": ["interpolate", ["linear"], ["zoom"], 3, 1, 5, 1.2, 12, 3]
530
- }
531
- },
532
- {
533
- id: "waterway_line_label",
534
- type: "symbol",
535
- source: "openmaptiles",
536
- "source-layer": "waterway",
537
- minzoom: 10,
538
- filter: ["==", ["geometry-type"], "LineString"],
539
- layout: {
540
- "symbol-placement": "line",
541
- "symbol-spacing": 350,
542
- "text-field": ["coalesce", ["get", "name_en"], ["get", "name:latin"]],
543
- "text-font": ["Noto Sans Regular"],
544
- "text-letter-spacing": 0.2,
545
- "text-max-width": 5,
546
- "text-size": 14
547
- },
548
- paint: {
549
- "text-color": "rgba(34, 34, 34, 1)",
550
- "text-halo-color": "rgba(255, 255, 255, 1)",
551
- "text-halo-width": 1
552
- }
553
- },
554
- {
555
- id: "water_name_point_label",
556
- type: "symbol",
557
- source: "openmaptiles",
558
- "source-layer": "water_name",
559
- minzoom: 0,
560
- filter: ["==", ["geometry-type"], "Point"],
561
- layout: { visibility: "none" }
562
- },
563
- {
564
- id: "water_name_line_label",
565
- type: "symbol",
566
- source: "openmaptiles",
567
- "source-layer": "water_name",
568
- filter: ["==", ["geometry-type"], "LineString"],
569
- layout: { visibility: "none" }
570
- },
571
- {
572
- id: "highway-name-path",
573
- type: "symbol",
574
- source: "openmaptiles",
575
- "source-layer": "transportation_name",
576
- minzoom: 15.5,
577
- filter: ["==", ["get", "class"], "path"],
578
- layout: {
579
- "symbol-placement": "line",
580
- "text-field": ["get", "name:latin"],
581
- "text-font": ["Noto Sans Regular"],
582
- "text-rotation-alignment": "map",
583
- "text-size": ["interpolate", ["linear"], ["zoom"], 13, 12, 14, 13]
584
- },
585
- paint: {
586
- "text-color": "rgba(158, 158, 158, 1)",
587
- "text-halo-color": "rgba(244, 244, 244, 1)",
588
- "text-halo-width": 0.5
589
- }
590
- },
591
- {
592
- id: "highway-name-minor",
593
- type: "symbol",
594
- source: "openmaptiles",
595
- "source-layer": "transportation_name",
596
- minzoom: 15,
597
- filter: ["all", ["==", ["geometry-type"], "LineString"], ["match", ["get", "class"], ["minor", "service", "track"], !0, !1]],
598
- layout: {
599
- "symbol-placement": "line",
600
- "text-field": ["get", "name:latin"],
601
- "text-font": ["Noto Sans Regular"],
602
- "text-rotation-alignment": "map",
603
- "text-size": ["interpolate", ["linear"], ["zoom"], 13, 12, 14, 13]
604
- },
605
- paint: {
606
- "text-color": "rgba(17, 17, 17, 1)",
607
- "text-halo-width": 1,
608
- "text-halo-color": "rgba(255, 255, 255, 1)"
609
- }
610
- },
611
- {
612
- id: "highway-name-major",
613
- type: "symbol",
614
- source: "openmaptiles",
615
- "source-layer": "transportation_name",
616
- minzoom: 12.2,
617
- filter: ["match", ["get", "class"], ["primary", "secondary", "tertiary", "trunk"], !0, !1],
618
- layout: {
619
- "symbol-placement": "line",
620
- "text-field": ["get", "name:latin"],
621
- "text-font": ["Noto Sans Regular"],
622
- "text-rotation-alignment": "map",
623
- "text-size": ["interpolate", ["linear"], ["zoom"], 13, 12, 14, 13]
624
- },
625
- paint: {
626
- "text-color": "rgba(34, 34, 34, 1)",
627
- "text-halo-width": 1,
628
- "text-halo-color": "rgba(255, 255, 255, 1)"
629
- }
630
- },
631
- {
632
- id: "highway-shield-non-us",
633
- type: "symbol",
634
- source: "openmaptiles",
635
- "source-layer": "transportation_name",
636
- minzoom: 11,
637
- filter: [
638
- "all",
639
- ["<=", ["get", "ref_length"], 6],
640
- ["==", ["geometry-type"], "LineString"],
641
- ["match", ["get", "network"], ["us-highway", "us-interstate", "us-state"], !1, !0]
642
- ],
643
- layout: {
644
- "icon-rotation-alignment": "viewport",
645
- "icon-size": 1,
646
- "symbol-placement": ["step", ["zoom"], "point", 11, "line"],
647
- "symbol-spacing": 200,
648
- "text-field": ["to-string", ["get", "ref"]],
649
- "text-font": ["Noto Sans Regular"],
650
- "text-rotation-alignment": "viewport",
651
- "text-size": 10
652
- },
653
- paint: {
654
- "text-halo-color": "rgba(255, 255, 255, 1)",
655
- "text-color": "rgba(255, 255, 255, 1)"
656
- }
657
- },
658
- {
659
- id: "highway-shield-us-interstate",
660
- type: "symbol",
661
- source: "openmaptiles",
662
- "source-layer": "transportation_name",
663
- minzoom: 11,
664
- filter: [
665
- "all",
666
- ["<=", ["get", "ref_length"], 6],
667
- ["==", ["geometry-type"], "LineString"],
668
- ["match", ["get", "network"], ["us-interstate"], !0, !1]
669
- ],
670
- layout: {
671
- "icon-rotation-alignment": "viewport",
672
- "icon-size": 1,
673
- "symbol-placement": ["step", ["zoom"], "point", 7, "line", 8, "line"],
674
- "symbol-spacing": 200,
675
- "text-field": ["to-string", ["get", "ref"]],
676
- "text-font": ["Noto Sans Regular"],
677
- "text-rotation-alignment": "viewport",
678
- "text-size": 10
679
- }
680
- },
681
- {
682
- id: "road_shield_us",
683
- type: "symbol",
684
- source: "openmaptiles",
685
- "source-layer": "transportation_name",
686
- minzoom: 12,
687
- filter: [
688
- "all",
689
- ["<=", ["get", "ref_length"], 6],
690
- ["==", ["geometry-type"], "LineString"],
691
- ["match", ["get", "network"], ["us-highway", "us-state"], !0, !1]
692
- ],
693
- layout: {
694
- "icon-rotation-alignment": "viewport",
695
- "icon-size": 1,
696
- "symbol-placement": ["step", ["zoom"], "point", 11, "line"],
697
- "symbol-spacing": 200,
698
- "text-field": ["to-string", ["get", "ref"]],
699
- "text-font": ["Noto Sans Regular"],
700
- "text-rotation-alignment": "viewport",
701
- "text-size": 10
702
- }
703
- },
704
- {
705
- id: "airport",
706
- type: "symbol",
707
- source: "openmaptiles",
708
- "source-layer": "aerodrome_label",
709
- minzoom: 11,
710
- filter: ["all", ["has", "iata"]],
711
- layout: {
712
- "icon-size": 1,
713
- "text-anchor": "top",
714
- "text-field": ["coalesce", ["get", "name_en"], ["get", "name:latin"]],
715
- "text-font": ["Noto Sans Regular"],
716
- "text-max-width": 9,
717
- "text-offset": [0, 0.6],
718
- "text-optional": !0,
719
- "text-padding": 2,
720
- "text-size": 12
721
- },
722
- paint: {
723
- "text-color": "rgba(51, 51, 51, 1)",
724
- "text-halo-color": "rgba(255, 255, 255, 1)",
725
- "text-halo-width": 1
726
- }
727
- },
728
- {
729
- id: "label_other",
730
- type: "symbol",
731
- source: "openmaptiles",
732
- "source-layer": "place",
733
- minzoom: 8,
734
- filter: ["match", ["get", "class"], ["city", "continent", "country", "state", "town", "village"], !1, !0],
735
- layout: {
736
- "text-field": ["get", "name:latin"],
737
- "text-font": ["Noto Sans Regular"],
738
- "text-letter-spacing": 0.1,
739
- "text-max-width": 9,
740
- "text-size": ["interpolate", ["linear"], ["zoom"], 8, 9, 12, 10],
741
- "text-transform": "uppercase"
742
- },
743
- paint: {
744
- "text-color": "rgba(17, 17, 17, 1)",
745
- "text-halo-color": "rgba(255, 255, 255, 1)",
746
- "text-halo-width": 1
747
- }
748
- },
749
- {
750
- id: "label_village",
751
- type: "symbol",
752
- source: "openmaptiles",
753
- "source-layer": "place",
754
- minzoom: 9,
755
- filter: ["==", ["get", "class"], "village"],
756
- layout: {
757
- "icon-allow-overlap": !0,
758
- "icon-optional": !1,
759
- "icon-size": 0.2,
760
- "text-anchor": "bottom",
761
- "text-field": ["coalesce", ["get", "name_en"], ["get", "name:latin"]],
762
- "text-font": ["Noto Sans Regular"],
763
- "text-max-width": 8,
764
- "text-size": ["interpolate", ["exponential", 1.2], ["zoom"], 7, 10, 11, 12]
765
- },
766
- paint: {
767
- "text-color": "rgba(0, 0, 0, 1)",
768
- "text-halo-color": "rgba(255, 255, 255, 1)",
769
- "text-halo-width": 1
770
- }
771
- },
772
- {
773
- id: "label_town",
774
- type: "symbol",
775
- source: "openmaptiles",
776
- "source-layer": "place",
777
- minzoom: 6,
778
- filter: ["==", ["get", "class"], "town"],
779
- layout: {
780
- "icon-allow-overlap": !0,
781
- "icon-optional": !1,
782
- "icon-size": 0.2,
783
- "text-anchor": "bottom",
784
- "text-field": ["coalesce", ["get", "name_en"], ["get", "name:latin"]],
785
- "text-font": ["Noto Sans Regular"],
786
- "text-max-width": 8,
787
- "text-size": ["interpolate", ["exponential", 1.2], ["zoom"], 7, 12, 11, 14]
788
- },
789
- paint: {
790
- "text-color": "rgba(0, 0, 0, 1)",
791
- "text-halo-color": "rgba(255, 255, 255, 1)",
792
- "text-halo-width": 1
793
- }
794
- },
795
- {
796
- id: "label_state",
797
- type: "symbol",
798
- source: "openmaptiles",
799
- "source-layer": "place",
800
- minzoom: 5,
801
- maxzoom: 8,
802
- filter: ["==", ["get", "class"], "state"],
803
- layout: {
804
- "text-field": ["coalesce", ["get", "name_en"], ["get", "name:latin"]],
805
- "text-font": ["Noto Sans Regular"],
806
- "text-letter-spacing": 0.2,
807
- "text-max-width": 9,
808
- "text-size": ["interpolate", ["linear"], ["zoom"], 5, 10, 8, 14],
809
- "text-transform": "uppercase"
810
- },
811
- paint: {
812
- "text-color": "rgba(17, 17, 17, 1)",
813
- "text-halo-color": "rgba(255, 255, 255, 1)",
814
- "text-halo-width": 1
815
- }
816
- },
817
- {
818
- id: "label_city",
819
- type: "symbol",
820
- source: "openmaptiles",
821
- "source-layer": "place",
822
- minzoom: 3,
823
- filter: ["all", ["==", ["get", "class"], "city"], ["!=", ["get", "capital"], 2]],
824
- layout: {
825
- "icon-allow-overlap": !0,
826
- "icon-optional": !1,
827
- "icon-size": 0.4,
828
- "text-anchor": "bottom",
829
- "text-field": ["coalesce", ["get", "name_en"], ["get", "name:latin"]],
830
- "text-font": ["Noto Sans Regular"],
831
- "text-max-width": 8,
832
- "text-offset": [0, -0.1],
833
- "text-size": ["interpolate", ["exponential", 1.2], ["zoom"], 4, 11, 7, 13, 11, 18]
834
- },
835
- paint: {
836
- "text-color": "rgba(0, 0, 0, 1)",
837
- "text-halo-color": "rgba(255, 255, 255, 1)",
838
- "text-halo-width": 1
839
- }
840
- },
841
- {
842
- id: "label_city_capital",
843
- type: "symbol",
844
- source: "openmaptiles",
845
- "source-layer": "place",
846
- minzoom: 3,
847
- filter: ["all", ["==", ["get", "class"], "city"], ["==", ["get", "capital"], 2]],
848
- layout: {
849
- "icon-allow-overlap": !0,
850
- "icon-optional": !1,
851
- "icon-size": 0.5,
852
- "text-anchor": "bottom",
853
- "text-field": ["coalesce", ["get", "name_en"], ["get", "name:latin"]],
854
- "text-font": ["Noto Sans Bold"],
855
- "text-max-width": 8,
856
- "text-offset": [0, -0.2],
857
- "text-size": ["interpolate", ["exponential", 1.2], ["zoom"], 4, 12, 7, 14, 11, 20]
858
- },
859
- paint: {
860
- "text-color": "rgba(0, 0, 0, 1)",
861
- "text-halo-color": "rgba(255, 255, 255, 1)",
862
- "text-halo-width": 1
863
- }
864
- },
865
- {
866
- id: "label_country_3",
867
- type: "symbol",
868
- source: "openmaptiles",
869
- "source-layer": "place",
870
- minzoom: 2,
871
- maxzoom: 9,
872
- filter: ["all", ["==", ["get", "class"], "country"], [">=", ["get", "rank"], 3]],
873
- layout: {
874
- "text-field": ["coalesce", ["get", "name_en"], ["get", "name:latin"]],
875
- "text-font": ["Noto Sans Bold"],
876
- "text-max-width": 6.25,
877
- "text-size": ["interpolate", ["linear"], ["zoom"], 3, 9, 7, 17]
878
- },
879
- paint: {
880
- "text-color": "rgba(0, 0, 0, 1)",
881
- "text-halo-color": "rgba(255, 255, 255, 1)",
882
- "text-halo-width": 1
883
- }
884
- },
885
- {
886
- id: "label_country_2",
887
- type: "symbol",
888
- source: "openmaptiles",
889
- "source-layer": "place",
890
- maxzoom: 9,
891
- filter: ["all", ["==", ["get", "class"], "country"], ["==", ["get", "rank"], 2]],
892
- layout: {
893
- "text-field": ["coalesce", ["get", "name_en"], ["get", "name:latin"]],
894
- "text-font": ["Noto Sans Bold"],
895
- "text-max-width": 6.25,
896
- "text-size": ["interpolate", ["linear"], ["zoom"], 2, 9, 5, 17]
897
- },
898
- paint: {
899
- "text-color": "rgba(0, 0, 0, 1)",
900
- "text-halo-color": "rgba(255, 255, 255, 1)",
901
- "text-halo-width": 1
902
- }
903
- },
904
- {
905
- id: "label_country_1",
906
- type: "symbol",
907
- source: "openmaptiles",
908
- "source-layer": "place",
909
- maxzoom: 9,
910
- filter: ["all", ["==", ["get", "class"], "country"], ["==", ["get", "rank"], 1]],
911
- layout: {
912
- "text-field": ["coalesce", ["get", "name_en"], ["get", "name:latin"]],
913
- "text-font": ["Noto Sans Bold"],
914
- "text-max-width": 6.25,
915
- "text-size": ["interpolate", ["linear"], ["zoom"], 1, 9, 4, 17]
916
- },
917
- paint: {
918
- "text-color": "rgba(0, 0, 0, 1)",
919
- "text-halo-color": "rgba(255, 255, 255, 1)",
920
- "text-halo-width": 1
921
- }
922
- }
923
- ]
924
- }, u = {
925
- version: 8,
926
- sources: {
927
- openmaptiles: {
928
- type: "vector",
929
- url: "https://tiles.openfreemap.org/planet"
930
- }
931
- },
932
- glyphs: "https://tiles.openfreemap.org/fonts/{fontstack}/{range}.pbf",
933
- layers: [
934
- {
935
- id: "background",
936
- type: "background",
937
- paint: { "background-color": "rgba(220, 220, 220, 1)" }
938
- },
939
- {
940
- id: "park",
941
- type: "fill",
942
- source: "openmaptiles",
943
- "source-layer": "park",
944
- filter: ["in", ["geometry-type"], ["literal", ["Polygon", "MultiPolygon"]]],
945
- paint: { "fill-color": "rgba(228, 228, 228, 1)" }
946
- },
947
- {
948
- id: "water",
949
- type: "fill",
950
- source: "openmaptiles",
951
- "source-layer": "water",
952
- filter: ["all", ["in", ["geometry-type"], ["literal", ["Polygon", "MultiPolygon"]]], ["!=", ["get", "brunnel"], "tunnel"]],
953
- paint: { "fill-antialias": !0, "fill-color": "rgba(156, 156, 156, 1)" }
954
- },
955
- {
956
- id: "landcover_ice_shelf",
957
- type: "fill",
958
- source: "openmaptiles",
959
- "source-layer": "landcover",
960
- maxzoom: 8,
961
- filter: ["all", ["in", ["geometry-type"], ["literal", ["Polygon", "MultiPolygon"]]], ["==", ["get", "subclass"], "ice_shelf"]],
962
- paint: { "fill-color": "rgba(228, 228, 228, 1)", "fill-opacity": 0.7 }
963
- },
964
- {
965
- id: "landcover_glacier",
966
- type: "fill",
967
- source: "openmaptiles",
968
- "source-layer": "landcover",
969
- maxzoom: 8,
970
- filter: ["all", ["in", ["geometry-type"], ["literal", ["Polygon", "MultiPolygon"]]], ["==", ["get", "subclass"], "glacier"]],
971
- paint: {
972
- "fill-color": "rgba(253, 253, 253, 1)",
973
- "fill-opacity": ["interpolate", ["linear"], ["zoom"], 0, 1, 8, 0.5]
974
- }
975
- },
976
- {
977
- id: "landuse_residential",
978
- type: "fill",
979
- source: "openmaptiles",
980
- "source-layer": "landuse",
981
- maxzoom: 16,
982
- filter: ["all", ["in", ["geometry-type"], ["literal", ["Polygon", "MultiPolygon"]]], ["==", ["get", "class"], "residential"]],
983
- paint: {
984
- "fill-color": "rgba(204, 204, 204, 1)",
985
- "fill-opacity": ["interpolate", ["exponential", 0.6], ["zoom"], 8, 0.8, 9, 0.6]
986
- }
987
- },
988
- {
989
- id: "landcover_wood",
990
- type: "fill",
991
- source: "openmaptiles",
992
- "source-layer": "landcover",
993
- minzoom: 10,
994
- filter: ["all", ["in", ["geometry-type"], ["literal", ["Polygon", "MultiPolygon"]]], ["==", ["get", "class"], "wood"]],
995
- paint: {
996
- "fill-color": "rgba(228, 228, 228, 1)",
997
- "fill-opacity": ["interpolate", ["linear"], ["zoom"], 8, 0, 12, 1]
998
- }
999
- },
1000
- {
1001
- id: "waterway",
1002
- type: "line",
1003
- source: "openmaptiles",
1004
- "source-layer": "waterway",
1005
- filter: ["==", ["geometry-type"], "LineString"],
1006
- paint: { "line-color": "rgba(156, 156, 156, 1)" }
1007
- },
1008
- {
1009
- id: "building",
1010
- type: "fill",
1011
- source: "openmaptiles",
1012
- "source-layer": "building",
1013
- minzoom: 12,
1014
- paint: {
1015
- "fill-antialias": !0,
1016
- "fill-color": "rgba(236, 236, 236, 1)",
1017
- "fill-outline-color": "rgba(202, 202, 202, 1)"
1018
- }
1019
- },
1020
- {
1021
- id: "tunnel_motorway_casing",
1022
- type: "line",
1023
- source: "openmaptiles",
1024
- "source-layer": "transportation",
1025
- minzoom: 6,
1026
- filter: ["all", ["==", ["geometry-type"], "LineString"], ["all", ["==", ["get", "brunnel"], "tunnel"], ["==", ["get", "class"], "motorway"]]],
1027
- layout: { "line-cap": "butt", "line-join": "miter" },
1028
- paint: {
1029
- "line-color": "rgb(168, 168, 168)",
1030
- "line-opacity": 1,
1031
- "line-width": ["interpolate", ["exponential", 1.4], ["zoom"], 5.8, 0, 6, 3, 20, 40]
1032
- }
1033
- },
1034
- {
1035
- id: "tunnel_motorway_inner",
1036
- type: "line",
1037
- source: "openmaptiles",
1038
- "source-layer": "transportation",
1039
- minzoom: 6,
1040
- filter: ["all", ["==", ["geometry-type"], "LineString"], ["all", ["==", ["get", "brunnel"], "tunnel"], ["==", ["get", "class"], "motorway"]]],
1041
- layout: { "line-cap": "round", "line-join": "round" },
1042
- paint: {
1043
- "line-color": "rgb(185, 185, 185)",
1044
- "line-width": ["interpolate", ["exponential", 1.4], ["zoom"], 4, 2, 6, 1.3, 20, 30]
1045
- }
1046
- },
1047
- {
1048
- id: "aeroway-taxiway",
1049
- type: "line",
1050
- source: "openmaptiles",
1051
- "source-layer": "aeroway",
1052
- minzoom: 12,
1053
- filter: ["match", ["get", "class"], ["taxiway"], !0, !1],
1054
- layout: { "line-cap": "round", "line-join": "round" },
1055
- paint: {
1056
- "line-color": "rgba(185, 185, 185, 1)",
1057
- "line-opacity": 1,
1058
- "line-width": ["interpolate", ["exponential", 1.55], ["zoom"], 13, 1.8, 20, 20]
1059
- }
1060
- },
1061
- {
1062
- id: "aeroway-runway-casing",
1063
- type: "line",
1064
- source: "openmaptiles",
1065
- "source-layer": "aeroway",
1066
- minzoom: 11,
1067
- filter: ["match", ["get", "class"], ["runway"], !0, !1],
1068
- layout: { "line-cap": "round", "line-join": "round" },
1069
- paint: {
1070
- "line-color": "rgba(185, 185, 185, 1)",
1071
- "line-opacity": 1,
1072
- "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 11, 6, 17, 55]
1073
- }
1074
- },
1075
- {
1076
- id: "aeroway-area",
1077
- type: "fill",
1078
- source: "openmaptiles",
1079
- "source-layer": "aeroway",
1080
- minzoom: 4,
1081
- filter: [
1082
- "all",
1083
- ["in", ["geometry-type"], ["literal", ["Polygon", "MultiPolygon"]]],
1084
- ["match", ["get", "class"], ["runway", "taxiway"], !0, !1]
1085
- ],
1086
- paint: {
1087
- "fill-color": "rgba(228, 228, 228, 1)",
1088
- "fill-opacity": ["interpolate", ["linear"], ["zoom"], 13, 0, 14, 1]
1089
- }
1090
- },
1091
- {
1092
- id: "aeroway-runway",
1093
- type: "line",
1094
- source: "openmaptiles",
1095
- "source-layer": "aeroway",
1096
- minzoom: 11,
1097
- filter: ["all", ["match", ["get", "class"], ["runway"], !0, !1], ["==", ["geometry-type"], "LineString"]],
1098
- layout: { "line-cap": "round", "line-join": "round" },
1099
- paint: {
1100
- "line-color": "rgba(168, 168, 168, 1)",
1101
- "line-opacity": 1,
1102
- "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 11, 4, 17, 50]
1103
- }
1104
- },
1105
- {
1106
- id: "road_area_pier",
1107
- type: "fill",
1108
- source: "openmaptiles",
1109
- "source-layer": "transportation",
1110
- filter: ["all", ["in", ["geometry-type"], ["literal", ["Polygon", "MultiPolygon"]]], ["==", ["get", "class"], "pier"]],
1111
- paint: { "fill-antialias": !0, "fill-color": "rgba(150, 150, 150, 1)" }
1112
- },
1113
- {
1114
- id: "road_pier",
1115
- type: "line",
1116
- source: "openmaptiles",
1117
- "source-layer": "transportation",
1118
- filter: ["all", ["==", ["geometry-type"], "LineString"], ["match", ["get", "class"], ["pier"], !0, !1]],
1119
- layout: { "line-cap": "round", "line-join": "round" },
1120
- paint: {
1121
- "line-color": "rgba(152, 152, 152, 1)",
1122
- "line-width": ["interpolate", ["exponential", 1.2], ["zoom"], 15, 1, 17, 4]
1123
- }
1124
- },
1125
- {
1126
- id: "highway_path",
1127
- type: "line",
1128
- source: "openmaptiles",
1129
- "source-layer": "transportation",
1130
- filter: ["all", ["==", ["geometry-type"], "LineString"], ["==", ["get", "class"], "path"]],
1131
- layout: { "line-cap": "round", "line-join": "round" },
1132
- paint: {
1133
- "line-color": "rgb(188, 188, 188)",
1134
- "line-opacity": 0.9,
1135
- "line-width": ["interpolate", ["exponential", 1.2], ["zoom"], 13, 1, 20, 10]
1136
- }
1137
- },
1138
- {
1139
- id: "highway_minor",
1140
- type: "line",
1141
- source: "openmaptiles",
1142
- "source-layer": "transportation",
1143
- minzoom: 8,
1144
- filter: ["all", ["==", ["geometry-type"], "LineString"], ["match", ["get", "class"], ["minor", "service", "track"], !0, !1]],
1145
- layout: { "line-cap": "round", "line-join": "round" },
1146
- paint: {
1147
- "line-color": "rgba(202, 202, 202, 1)",
1148
- "line-opacity": 0.9,
1149
- "line-width": ["interpolate", ["exponential", 1.55], ["zoom"], 13, 1.8, 20, 20]
1150
- }
1151
- },
1152
- {
1153
- id: "highway_major_casing",
1154
- type: "line",
1155
- source: "openmaptiles",
1156
- "source-layer": "transportation",
1157
- minzoom: 11,
1158
- filter: ["all", ["==", ["geometry-type"], "LineString"], ["match", ["get", "class"], ["primary", "secondary", "tertiary", "trunk"], !0, !1]],
1159
- layout: { "line-cap": "butt", "line-join": "miter" },
1160
- paint: {
1161
- "line-color": "rgb(185, 185, 185)",
1162
- "line-dasharray": [12, 0],
1163
- "line-width": ["interpolate", ["exponential", 1.3], ["zoom"], 10, 3, 20, 23]
1164
- }
1165
- },
1166
- {
1167
- id: "highway_major_inner",
1168
- type: "line",
1169
- source: "openmaptiles",
1170
- "source-layer": "transportation",
1171
- minzoom: 11,
1172
- filter: ["all", ["==", ["geometry-type"], "LineString"], ["match", ["get", "class"], ["primary", "secondary", "tertiary", "trunk"], !0, !1]],
1173
- layout: { "line-cap": "round", "line-join": "round" },
1174
- paint: {
1175
- "line-color": "rgba(202, 202, 202, 1)",
1176
- "line-width": ["interpolate", ["exponential", 1.3], ["zoom"], 10, 2, 20, 20]
1177
- }
1178
- },
1179
- {
1180
- id: "highway_major_subtle",
1181
- type: "line",
1182
- source: "openmaptiles",
1183
- "source-layer": "transportation",
1184
- maxzoom: 11,
1185
- filter: ["all", ["==", ["geometry-type"], "LineString"], ["match", ["get", "class"], ["primary", "secondary", "tertiary", "trunk"], !0, !1]],
1186
- layout: { "line-cap": "round", "line-join": "round" },
1187
- paint: { "line-color": "rgba(185, 185, 185, 1)", "line-width": 2 }
1188
- },
1189
- {
1190
- id: "highway_motorway_casing",
1191
- type: "line",
1192
- source: "openmaptiles",
1193
- "source-layer": "transportation",
1194
- minzoom: 6,
1195
- filter: [
1196
- "all",
1197
- ["==", ["geometry-type"], "LineString"],
1198
- ["all", ["match", ["get", "brunnel"], ["bridge", "tunnel"], !1, !0], ["==", ["get", "class"], "motorway"]]
1199
- ],
1200
- layout: { "line-cap": "butt", "line-join": "miter" },
1201
- paint: {
1202
- "line-color": "rgb(168, 168, 168)",
1203
- "line-dasharray": [2, 0],
1204
- "line-opacity": 1,
1205
- "line-width": ["interpolate", ["exponential", 1.4], ["zoom"], 5.8, 0, 6, 3, 20, 40]
1206
- }
1207
- },
1208
- {
1209
- id: "highway_motorway_inner",
1210
- type: "line",
1211
- source: "openmaptiles",
1212
- "source-layer": "transportation",
1213
- minzoom: 6,
1214
- filter: [
1215
- "all",
1216
- ["==", ["geometry-type"], "LineString"],
1217
- ["all", ["match", ["get", "brunnel"], ["bridge", "tunnel"], !1, !0], ["==", ["get", "class"], "motorway"]]
1218
- ],
1219
- layout: { "line-cap": "round", "line-join": "round" },
1220
- paint: {
1221
- "line-color": ["interpolate", ["linear"], ["zoom"], 5.8, "rgba(202, 202, 202, 1)", 6, "rgba(185, 185, 185, 1)"],
1222
- "line-width": ["interpolate", ["exponential", 1.4], ["zoom"], 4, 2, 6, 1.3, 20, 30]
1223
- }
1224
- },
1225
- {
1226
- id: "highway_motorway_subtle",
1227
- type: "line",
1228
- source: "openmaptiles",
1229
- "source-layer": "transportation",
1230
- maxzoom: 6,
1231
- filter: ["all", ["==", ["geometry-type"], "LineString"], ["==", ["get", "class"], "motorway"]],
1232
- layout: { "line-cap": "round", "line-join": "round" },
1233
- paint: {
1234
- "line-color": "rgba(202, 202, 202, 1)",
1235
- "line-width": ["interpolate", ["exponential", 1.4], ["zoom"], 4, 2, 6, 1.3]
1236
- }
1237
- },
1238
- {
1239
- id: "railway_transit",
1240
- type: "line",
1241
- source: "openmaptiles",
1242
- "source-layer": "transportation",
1243
- minzoom: 16,
1244
- filter: [
1245
- "all",
1246
- ["==", ["geometry-type"], "LineString"],
1247
- ["all", ["==", ["get", "class"], "transit"], ["match", ["get", "brunnel"], ["tunnel"], !1, !0]]
1248
- ],
1249
- layout: { "line-join": "round" },
1250
- paint: { "line-color": "rgba(185, 185, 185, 1)", "line-width": 3 }
1251
- },
1252
- {
1253
- id: "railway_transit_dashline",
1254
- type: "line",
1255
- source: "openmaptiles",
1256
- "source-layer": "transportation",
1257
- minzoom: 16,
1258
- filter: [
1259
- "all",
1260
- ["==", ["geometry-type"], "LineString"],
1261
- ["all", ["==", ["get", "class"], "transit"], ["match", ["get", "brunnel"], ["tunnel"], !1, !0]]
1262
- ],
1263
- layout: { "line-join": "round" },
1264
- paint: {
1265
- "line-color": "rgba(168, 168, 168, 1)",
1266
- "line-dasharray": [3, 3],
1267
- "line-width": 2
1268
- }
1269
- },
1270
- {
1271
- id: "railway_service",
1272
- type: "line",
1273
- source: "openmaptiles",
1274
- "source-layer": "transportation",
1275
- minzoom: 16,
1276
- filter: ["all", ["==", ["geometry-type"], "LineString"], ["all", ["==", ["get", "class"], "rail"], ["has", "service"]]],
1277
- layout: { "line-join": "round" },
1278
- paint: { "line-color": "rgba(202, 202, 202, 1)", "line-width": 3 }
1279
- },
1280
- {
1281
- id: "railway_service_dashline",
1282
- type: "line",
1283
- source: "openmaptiles",
1284
- "source-layer": "transportation",
1285
- minzoom: 16,
1286
- filter: ["all", ["==", ["geometry-type"], "LineString"], ["==", ["get", "class"], "rail"], ["has", "service"]],
1287
- layout: { "line-join": "round" },
1288
- paint: {
1289
- "line-color": "rgba(185, 185, 185, 1)",
1290
- "line-dasharray": [3, 3],
1291
- "line-width": 2
1292
- }
1293
- },
1294
- {
1295
- id: "railway",
1296
- type: "line",
1297
- source: "openmaptiles",
1298
- "source-layer": "transportation",
1299
- minzoom: 13,
1300
- filter: ["all", ["==", ["geometry-type"], "LineString"], ["all", ["!", ["has", "service"]], ["==", ["get", "class"], "rail"]]],
1301
- layout: { "line-join": "round" },
1302
- paint: {
1303
- "line-color": "rgba(185, 185, 185, 1)",
1304
- "line-width": ["interpolate", ["exponential", 1.3], ["zoom"], 16, 3, 20, 7]
1305
- }
1306
- },
1307
- {
1308
- id: "railway_dashline",
1309
- type: "line",
1310
- source: "openmaptiles",
1311
- "source-layer": "transportation",
1312
- minzoom: 13,
1313
- filter: ["all", ["==", ["geometry-type"], "LineString"], ["all", ["!", ["has", "service"]], ["==", ["get", "class"], "rail"]]],
1314
- layout: { "line-join": "round" },
1315
- paint: {
1316
- "line-color": "rgba(168, 168, 168, 1)",
1317
- "line-dasharray": [3, 3],
1318
- "line-width": ["interpolate", ["exponential", 1.3], ["zoom"], 16, 2, 20, 6]
1319
- }
1320
- },
1321
- {
1322
- id: "highway_motorway_bridge_casing",
1323
- type: "line",
1324
- source: "openmaptiles",
1325
- "source-layer": "transportation",
1326
- minzoom: 6,
1327
- filter: ["all", ["==", ["geometry-type"], "LineString"], ["all", ["==", ["get", "brunnel"], "bridge"], ["==", ["get", "class"], "motorway"]]],
1328
- layout: { "line-cap": "butt", "line-join": "miter" },
1329
- paint: {
1330
- "line-color": "rgb(168, 168, 168)",
1331
- "line-dasharray": [2, 0],
1332
- "line-opacity": 1,
1333
- "line-width": ["interpolate", ["exponential", 1.4], ["zoom"], 5.8, 0, 6, 5, 20, 45]
1334
- }
1335
- },
1336
- {
1337
- id: "highway_motorway_bridge_inner",
1338
- type: "line",
1339
- source: "openmaptiles",
1340
- "source-layer": "transportation",
1341
- minzoom: 6,
1342
- filter: ["all", ["==", ["geometry-type"], "LineString"], ["all", ["==", ["get", "brunnel"], "bridge"], ["==", ["get", "class"], "motorway"]]],
1343
- layout: { "line-cap": "round", "line-join": "round" },
1344
- paint: {
1345
- "line-color": ["interpolate", ["linear"], ["zoom"], 5.8, "rgba(202, 202, 202, 1)", 6, "rgba(185, 185, 185, 1)"],
1346
- "line-width": ["interpolate", ["exponential", 1.4], ["zoom"], 4, 2, 6, 1.3, 20, 30]
1347
- }
1348
- },
1349
- {
1350
- id: "boundary_3",
1351
- type: "line",
1352
- source: "openmaptiles",
1353
- "source-layer": "boundary",
1354
- minzoom: 8,
1355
- filter: [
1356
- "all",
1357
- [">=", ["get", "admin_level"], 3],
1358
- ["<=", ["get", "admin_level"], 6],
1359
- ["!=", ["get", "maritime"], 1],
1360
- ["!=", ["get", "disputed"], 1],
1361
- ["!", ["has", "claimed_by"]]
1362
- ],
1363
- paint: {
1364
- "line-color": "rgba(168, 168, 168, 1)",
1365
- "line-dasharray": [1, 1],
1366
- "line-width": ["interpolate", ["linear"], ["zoom"], 7, 1, 11, 2]
1367
- }
1368
- },
1369
- {
1370
- id: "boundary_2",
1371
- type: "line",
1372
- source: "openmaptiles",
1373
- "source-layer": "boundary",
1374
- filter: ["all", ["==", ["get", "admin_level"], 2], ["!=", ["get", "maritime"], 1], ["!=", ["get", "disputed"], 1], ["!", ["has", "claimed_by"]]],
1375
- layout: { "line-cap": "round", "line-join": "round" },
1376
- paint: {
1377
- "line-color": "rgba(151, 151, 151, 1)",
1378
- "line-opacity": ["interpolate", ["linear"], ["zoom"], 0, 0.4, 4, 1],
1379
- "line-width": ["interpolate", ["linear"], ["zoom"], 3, 1, 5, 1.2, 12, 3]
1380
- }
1381
- },
1382
- {
1383
- id: "boundary_disputed",
1384
- type: "line",
1385
- source: "openmaptiles",
1386
- "source-layer": "boundary",
1387
- filter: ["all", ["!=", ["get", "maritime"], 1], ["==", ["get", "disputed"], 1]],
1388
- paint: {
1389
- "line-color": "rgba(151, 151, 151, 1)",
1390
- "line-dasharray": [1, 2],
1391
- "line-width": ["interpolate", ["linear"], ["zoom"], 3, 1, 5, 1.2, 12, 3]
1392
- }
1393
- },
1394
- {
1395
- id: "waterway_line_label",
1396
- type: "symbol",
1397
- source: "openmaptiles",
1398
- "source-layer": "waterway",
1399
- minzoom: 10,
1400
- filter: ["==", ["geometry-type"], "LineString"],
1401
- layout: {
1402
- "symbol-placement": "line",
1403
- "symbol-spacing": 350,
1404
- "text-field": ["coalesce", ["get", "name_en"], ["get", "name:latin"]],
1405
- "text-font": ["Noto Sans Regular"],
1406
- "text-letter-spacing": 0.2,
1407
- "text-max-width": 5,
1408
- "text-size": 14
1409
- },
1410
- paint: {
1411
- "text-color": "rgba(34, 34, 34, 1)",
1412
- "text-halo-color": "rgba(255, 255, 255, 1)",
1413
- "text-halo-width": 1.5
1414
- }
1415
- },
1416
- {
1417
- id: "water_name_point_label",
1418
- type: "symbol",
1419
- source: "openmaptiles",
1420
- "source-layer": "water_name",
1421
- minzoom: 0,
1422
- filter: ["==", ["geometry-type"], "Point"],
1423
- layout: { visibility: "none" }
1424
- },
1425
- {
1426
- id: "water_name_line_label",
1427
- type: "symbol",
1428
- source: "openmaptiles",
1429
- "source-layer": "water_name",
1430
- filter: ["==", ["geometry-type"], "LineString"],
1431
- layout: { visibility: "none" }
1432
- },
1433
- {
1434
- id: "highway-name-path",
1435
- type: "symbol",
1436
- source: "openmaptiles",
1437
- "source-layer": "transportation_name",
1438
- minzoom: 15.5,
1439
- filter: ["==", ["get", "class"], "path"],
1440
- layout: {
1441
- "symbol-placement": "line",
1442
- "text-field": ["get", "name:latin"],
1443
- "text-font": ["Noto Sans Regular"],
1444
- "text-rotation-alignment": "map",
1445
- "text-size": ["interpolate", ["linear"], ["zoom"], 13, 12, 14, 13]
1446
- },
1447
- paint: {
1448
- "text-color": "rgba(158, 158, 158, 1)",
1449
- "text-halo-color": "rgba(244, 244, 244, 1)",
1450
- "text-halo-width": 0.5
1451
- }
1452
- },
1453
- {
1454
- id: "highway-name-minor",
1455
- type: "symbol",
1456
- source: "openmaptiles",
1457
- "source-layer": "transportation_name",
1458
- minzoom: 15,
1459
- filter: ["all", ["==", ["geometry-type"], "LineString"], ["match", ["get", "class"], ["minor", "service", "track"], !0, !1]],
1460
- layout: {
1461
- "symbol-placement": "line",
1462
- "text-field": ["get", "name:latin"],
1463
- "text-font": ["Noto Sans Regular"],
1464
- "text-rotation-alignment": "map",
1465
- "text-size": ["interpolate", ["linear"], ["zoom"], 13, 12, 14, 13]
1466
- },
1467
- paint: {
1468
- "text-color": "rgba(17, 17, 17, 1)",
1469
- "text-halo-width": 1,
1470
- "text-halo-color": "rgba(255, 255, 255, 1)"
1471
- }
1472
- },
1473
- {
1474
- id: "highway-name-major",
1475
- type: "symbol",
1476
- source: "openmaptiles",
1477
- "source-layer": "transportation_name",
1478
- minzoom: 12.2,
1479
- filter: ["match", ["get", "class"], ["primary", "secondary", "tertiary", "trunk"], !0, !1],
1480
- layout: {
1481
- "symbol-placement": "line",
1482
- "text-field": ["get", "name:latin"],
1483
- "text-font": ["Noto Sans Regular"],
1484
- "text-rotation-alignment": "map",
1485
- "text-size": ["interpolate", ["linear"], ["zoom"], 13, 12, 14, 13]
1486
- },
1487
- paint: {
1488
- "text-color": "rgba(34, 34, 34, 1)",
1489
- "text-halo-width": 1,
1490
- "text-halo-color": "rgba(255, 255, 255, 1)"
1491
- }
1492
- },
1493
- {
1494
- id: "highway-shield-non-us",
1495
- type: "symbol",
1496
- source: "openmaptiles",
1497
- "source-layer": "transportation_name",
1498
- minzoom: 11,
1499
- filter: [
1500
- "all",
1501
- ["<=", ["get", "ref_length"], 6],
1502
- ["==", ["geometry-type"], "LineString"],
1503
- ["match", ["get", "network"], ["us-highway", "us-interstate", "us-state"], !1, !0]
1504
- ],
1505
- layout: {
1506
- "icon-rotation-alignment": "viewport",
1507
- "icon-size": 1,
1508
- "symbol-placement": ["step", ["zoom"], "point", 11, "line"],
1509
- "symbol-spacing": 200,
1510
- "text-field": ["to-string", ["get", "ref"]],
1511
- "text-font": ["Noto Sans Regular"],
1512
- "text-rotation-alignment": "viewport",
1513
- "text-size": 10
1514
- },
1515
- paint: {
1516
- "text-halo-color": "rgba(0, 0, 0, 1)",
1517
- "text-color": "rgba(0, 0, 0, 1)"
1518
- }
1519
- },
1520
- {
1521
- id: "highway-shield-us-interstate",
1522
- type: "symbol",
1523
- source: "openmaptiles",
1524
- "source-layer": "transportation_name",
1525
- minzoom: 11,
1526
- filter: [
1527
- "all",
1528
- ["<=", ["get", "ref_length"], 6],
1529
- ["==", ["geometry-type"], "LineString"],
1530
- ["match", ["get", "network"], ["us-interstate"], !0, !1]
1531
- ],
1532
- layout: {
1533
- "icon-rotation-alignment": "viewport",
1534
- "icon-size": 1,
1535
- "symbol-placement": ["step", ["zoom"], "point", 7, "line", 8, "line"],
1536
- "symbol-spacing": 200,
1537
- "text-field": ["to-string", ["get", "ref"]],
1538
- "text-font": ["Noto Sans Regular"],
1539
- "text-rotation-alignment": "viewport",
1540
- "text-size": 10
1541
- }
1542
- },
1543
- {
1544
- id: "road_shield_us",
1545
- type: "symbol",
1546
- source: "openmaptiles",
1547
- "source-layer": "transportation_name",
1548
- minzoom: 12,
1549
- filter: [
1550
- "all",
1551
- ["<=", ["get", "ref_length"], 6],
1552
- ["==", ["geometry-type"], "LineString"],
1553
- ["match", ["get", "network"], ["us-highway", "us-state"], !0, !1]
1554
- ],
1555
- layout: {
1556
- "icon-rotation-alignment": "viewport",
1557
- "icon-size": 1,
1558
- "symbol-placement": ["step", ["zoom"], "point", 11, "line"],
1559
- "symbol-spacing": 200,
1560
- "text-field": ["to-string", ["get", "ref"]],
1561
- "text-font": ["Noto Sans Regular"],
1562
- "text-rotation-alignment": "viewport",
1563
- "text-size": 10
1564
- }
1565
- },
1566
- {
1567
- id: "airport",
1568
- type: "symbol",
1569
- source: "openmaptiles",
1570
- "source-layer": "aerodrome_label",
1571
- minzoom: 11,
1572
- filter: ["all", ["has", "iata"]],
1573
- layout: {
1574
- "icon-size": 1,
1575
- "text-anchor": "top",
1576
- "text-field": ["coalesce", ["get", "name_en"], ["get", "name:latin"]],
1577
- "text-font": ["Noto Sans Regular"],
1578
- "text-max-width": 9,
1579
- "text-offset": [0, 0.6],
1580
- "text-optional": !0,
1581
- "text-padding": 2,
1582
- "text-size": 12
1583
- },
1584
- paint: {
1585
- "text-color": "rgba(51, 51, 51, 1)",
1586
- "text-halo-color": "rgba(255, 255, 255, 1)",
1587
- "text-halo-width": 1
1588
- }
1589
- },
1590
- {
1591
- id: "label_other",
1592
- type: "symbol",
1593
- source: "openmaptiles",
1594
- "source-layer": "place",
1595
- minzoom: 8,
1596
- filter: ["match", ["get", "class"], ["city", "continent", "country", "state", "town", "village"], !1, !0],
1597
- layout: {
1598
- "text-field": ["get", "name:latin"],
1599
- "text-font": ["Noto Sans Regular"],
1600
- "text-letter-spacing": 0.1,
1601
- "text-max-width": 9,
1602
- "text-size": ["interpolate", ["linear"], ["zoom"], 8, 9, 12, 10],
1603
- "text-transform": "uppercase"
1604
- },
1605
- paint: {
1606
- "text-color": "rgba(17, 17, 17, 1)",
1607
- "text-halo-color": "rgba(255, 255, 255, 1)",
1608
- "text-halo-width": 1
1609
- }
1610
- },
1611
- {
1612
- id: "label_village",
1613
- type: "symbol",
1614
- source: "openmaptiles",
1615
- "source-layer": "place",
1616
- minzoom: 9,
1617
- filter: ["==", ["get", "class"], "village"],
1618
- layout: {
1619
- "icon-allow-overlap": !0,
1620
- "icon-optional": !1,
1621
- "icon-size": 0.2,
1622
- "text-anchor": "bottom",
1623
- "text-field": ["coalesce", ["get", "name_en"], ["get", "name:latin"]],
1624
- "text-font": ["Noto Sans Regular"],
1625
- "text-max-width": 8,
1626
- "text-size": ["interpolate", ["exponential", 1.2], ["zoom"], 7, 10, 11, 12]
1627
- },
1628
- paint: {
1629
- "text-color": "rgba(0, 0, 0, 1)",
1630
- "text-halo-color": "rgba(255, 255, 255, 1)",
1631
- "text-halo-width": 1
1632
- }
1633
- },
1634
- {
1635
- id: "label_town",
1636
- type: "symbol",
1637
- source: "openmaptiles",
1638
- "source-layer": "place",
1639
- minzoom: 6,
1640
- filter: ["==", ["get", "class"], "town"],
1641
- layout: {
1642
- "icon-allow-overlap": !0,
1643
- "icon-optional": !1,
1644
- "icon-size": 0.2,
1645
- "text-anchor": "bottom",
1646
- "text-field": ["coalesce", ["get", "name_en"], ["get", "name:latin"]],
1647
- "text-font": ["Noto Sans Regular"],
1648
- "text-max-width": 8,
1649
- "text-size": ["interpolate", ["exponential", 1.2], ["zoom"], 7, 12, 11, 14]
1650
- },
1651
- paint: {
1652
- "text-color": "rgba(0, 0, 0, 1)",
1653
- "text-halo-color": "rgba(255, 255, 255, 1)",
1654
- "text-halo-width": 1
1655
- }
1656
- },
1657
- {
1658
- id: "label_state",
1659
- type: "symbol",
1660
- source: "openmaptiles",
1661
- "source-layer": "place",
1662
- minzoom: 5,
1663
- maxzoom: 8,
1664
- filter: ["==", ["get", "class"], "state"],
1665
- layout: {
1666
- "text-field": ["coalesce", ["get", "name_en"], ["get", "name:latin"]],
1667
- "text-font": ["Noto Sans Regular"],
1668
- "text-letter-spacing": 0.2,
1669
- "text-max-width": 9,
1670
- "text-size": ["interpolate", ["linear"], ["zoom"], 5, 10, 8, 14],
1671
- "text-transform": "uppercase"
1672
- },
1673
- paint: {
1674
- "text-color": "rgba(17, 17, 17, 1)",
1675
- "text-halo-color": "rgba(255, 255, 255, 1)",
1676
- "text-halo-width": 1
1677
- }
1678
- },
1679
- {
1680
- id: "label_city",
1681
- type: "symbol",
1682
- source: "openmaptiles",
1683
- "source-layer": "place",
1684
- minzoom: 3,
1685
- filter: ["all", ["==", ["get", "class"], "city"], ["!=", ["get", "capital"], 2]],
1686
- layout: {
1687
- "icon-allow-overlap": !0,
1688
- "icon-optional": !1,
1689
- "icon-size": 0.4,
1690
- "text-anchor": "bottom",
1691
- "text-field": ["coalesce", ["get", "name_en"], ["get", "name:latin"]],
1692
- "text-font": ["Noto Sans Regular"],
1693
- "text-max-width": 8,
1694
- "text-offset": [0, -0.1],
1695
- "text-size": ["interpolate", ["exponential", 1.2], ["zoom"], 4, 11, 7, 13, 11, 18]
1696
- },
1697
- paint: {
1698
- "text-color": "rgba(0, 0, 0, 1)",
1699
- "text-halo-color": "rgba(255, 255, 255, 1)",
1700
- "text-halo-width": 1
1701
- }
1702
- },
1703
- {
1704
- id: "label_city_capital",
1705
- type: "symbol",
1706
- source: "openmaptiles",
1707
- "source-layer": "place",
1708
- minzoom: 3,
1709
- filter: ["all", ["==", ["get", "class"], "city"], ["==", ["get", "capital"], 2]],
1710
- layout: {
1711
- "icon-allow-overlap": !0,
1712
- "icon-optional": !1,
1713
- "icon-size": 0.5,
1714
- "text-anchor": "bottom",
1715
- "text-field": ["coalesce", ["get", "name_en"], ["get", "name:latin"]],
1716
- "text-font": ["Noto Sans Bold"],
1717
- "text-max-width": 8,
1718
- "text-offset": [0, -0.2],
1719
- "text-size": ["interpolate", ["exponential", 1.2], ["zoom"], 4, 12, 7, 14, 11, 20]
1720
- },
1721
- paint: {
1722
- "text-color": "rgba(0, 0, 0, 1)",
1723
- "text-halo-color": "rgba(255, 255, 255, 1)",
1724
- "text-halo-width": 1
1725
- }
1726
- },
1727
- {
1728
- id: "label_country_3",
1729
- type: "symbol",
1730
- source: "openmaptiles",
1731
- "source-layer": "place",
1732
- minzoom: 2,
1733
- maxzoom: 9,
1734
- filter: ["all", ["==", ["get", "class"], "country"], [">=", ["get", "rank"], 3]],
1735
- layout: {
1736
- "text-field": ["coalesce", ["get", "name_en"], ["get", "name:latin"]],
1737
- "text-font": ["Noto Sans Bold"],
1738
- "text-max-width": 6.25,
1739
- "text-size": ["interpolate", ["linear"], ["zoom"], 3, 9, 7, 17]
1740
- },
1741
- paint: {
1742
- "text-color": "rgba(0, 0, 0, 1)",
1743
- "text-halo-color": "rgba(255, 255, 255, 1)",
1744
- "text-halo-width": 1
1745
- }
1746
- },
1747
- {
1748
- id: "label_country_2",
1749
- type: "symbol",
1750
- source: "openmaptiles",
1751
- "source-layer": "place",
1752
- maxzoom: 9,
1753
- filter: ["all", ["==", ["get", "class"], "country"], ["==", ["get", "rank"], 2]],
1754
- layout: {
1755
- "text-field": ["coalesce", ["get", "name_en"], ["get", "name:latin"]],
1756
- "text-font": ["Noto Sans Bold"],
1757
- "text-max-width": 6.25,
1758
- "text-size": ["interpolate", ["linear"], ["zoom"], 2, 9, 5, 17]
1759
- },
1760
- paint: {
1761
- "text-color": "rgba(0, 0, 0, 1)",
1762
- "text-halo-color": "rgba(255, 255, 255, 1)",
1763
- "text-halo-width": 1
1764
- }
1765
- },
1766
- {
1767
- id: "label_country_1",
1768
- type: "symbol",
1769
- source: "openmaptiles",
1770
- "source-layer": "place",
1771
- maxzoom: 9,
1772
- filter: ["all", ["==", ["get", "class"], "country"], ["==", ["get", "rank"], 1]],
1773
- layout: {
1774
- "text-field": ["coalesce", ["get", "name_en"], ["get", "name:latin"]],
1775
- "text-font": ["Noto Sans Bold"],
1776
- "text-max-width": 6.25,
1777
- "text-size": ["interpolate", ["linear"], ["zoom"], 1, 9, 4, 17]
1778
- },
1779
- paint: {
1780
- "text-color": "rgba(0, 0, 0, 1)",
1781
- "text-halo-color": "rgba(255, 255, 255, 1)",
1782
- "text-halo-width": 1
1783
- }
1784
- }
1785
- ]
1786
- };
1787
- export {
1788
- g as MaplibreDarkStyle,
1789
- u as MaplibreLightStyle,
1790
- y as MaplibreProvider
1791
- };