basemapkit 0.3.0 → 0.4.1

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,51 +1,51 @@
1
- import { language_script_pairs as E, get_country_name as A, get_multiline_name as N } from "@protomaps/basemaps";
2
- import f from "color";
3
- function j(n) {
1
+ import { language_script_pairs as N, get_country_name as j, get_multiline_name as A } from "@protomaps/basemaps";
2
+ import b from "color";
3
+ function L(n) {
4
4
  return !!(typeof n == "string" && (n.startsWith("#") || n.startsWith("rgb(") || n.startsWith("rgba(") || n.startsWith("hsl(") || n.startsWith("hwb(")));
5
5
  }
6
- function S(n, i) {
6
+ function S(n, e) {
7
7
  if (!(typeof n == "string" || typeof n == "number" || typeof n == "boolean" || n === null || n === void 0)) {
8
8
  if (Array.isArray(n))
9
- for (let e = 0; e < n.length; e += 1) {
10
- const o = n[e];
11
- if (j(o)) {
12
- n[e] = i(o);
9
+ for (let i = 0; i < n.length; i += 1) {
10
+ const t = n[i];
11
+ if (L(t)) {
12
+ n[i] = e(t);
13
13
  continue;
14
14
  }
15
- S(o, i);
15
+ S(t, e);
16
16
  }
17
17
  else if (typeof n == "object") {
18
- const e = n, o = Object.keys(n);
19
- for (const r of o) {
20
- const c = e[r];
21
- if (j(c)) {
22
- e[r] = i(c);
18
+ const i = n, t = Object.keys(n);
19
+ for (const r of t) {
20
+ const d = i[r];
21
+ if (L(d)) {
22
+ i[r] = e(d);
23
23
  continue;
24
24
  }
25
- S(c, i);
25
+ S(d, e);
26
26
  }
27
27
  }
28
28
  }
29
29
  }
30
- function I(n, i) {
31
- const e = n / 255, o = e + (1 - e) * e * i;
32
- return Math.max(0, Math.min(255, o * 255));
30
+ function T(n, e) {
31
+ const i = n / 255, t = i + (1 - i) * i * e;
32
+ return Math.max(0, Math.min(255, t * 255));
33
33
  }
34
- function D(n, i) {
35
- return n.map((e) => I(e, i));
34
+ function $(n, e) {
35
+ return n.map((i) => T(i, e));
36
36
  }
37
- function W(n, i, e = 127) {
38
- const o = Math.max(-0.99, Math.min(0.99, i)), r = o < 0 ? o + 1 : 1 / (1 - o), c = e + r * (n - e);
39
- return Math.round(Math.max(0, Math.min(255, c)));
37
+ function D(n, e, i = 127) {
38
+ const t = Math.max(-0.99, Math.min(0.99, e)), r = t < 0 ? t + 1 : 1 / (1 - t), d = i + r * (n - i);
39
+ return Math.round(Math.max(0, Math.min(255, d)));
40
40
  }
41
- function $(n, i, e = 127) {
42
- return n.map((o) => W(o, i, e));
41
+ function P(n, e, i = 127) {
42
+ return n.map((t) => D(t, e, i));
43
43
  }
44
- function F(n, i, e = 1) {
45
- return 255 * (n / 255) * (i / 255) * e + n / 255 * (1 - e) * 255;
44
+ function F(n, e, i = 1) {
45
+ return 255 * (n / 255) * (e / 255) * i + n / 255 * (1 - i) * 255;
46
46
  }
47
- function P(n, i, e = 1) {
48
- return n.map((o, r) => F(n[r], i[r], e));
47
+ function W(n, e, i = 1) {
48
+ return n.map((t, r) => F(n[r], e[r], i));
49
49
  }
50
50
  const U = `[
51
51
  {
@@ -2038,6 +2038,4113 @@ const U = `[
2038
2038
  "text-halo-width": 1
2039
2039
  }
2040
2040
  },
2041
+ {
2042
+ "id": "places_locality_circle",
2043
+ "type": "circle",
2044
+ "source": "<BMK_BM_SRC>",
2045
+ "source-layer": "places",
2046
+ "filter": ["==", "kind", "locality"],
2047
+ "maxzoom": 8,
2048
+ "paint": {
2049
+ "circle-radius": {
2050
+ "stops": [[4, 2.5], [8, 3.5]]
2051
+ },
2052
+ "circle-color": "rgb(255, 255, 255)",
2053
+ "circle-stroke-width": 1.75,
2054
+ "circle-stroke-color": "rgb(134, 134, 134)"
2055
+ }
2056
+ },
2057
+ {
2058
+ "id": "places_locality",
2059
+ "type": "symbol",
2060
+ "source": "<BMK_BM_SRC>",
2061
+ "source-layer": "places",
2062
+ "filter": ["==", "kind", "locality"],
2063
+ "layout": {
2064
+ "icon-image": ["step", ["zoom"], "townspot", 8, ""],
2065
+ "icon-size": 0.7,
2066
+ "text-field": "<LANG>",
2067
+ "text-font": [
2068
+ "case",
2069
+ ["<=", ["get", "min_zoom"], 5],
2070
+ ["literal", ["Noto Sans Medium"]],
2071
+ ["literal", ["Noto Sans Regular"]]
2072
+ ],
2073
+ "symbol-sort-key": [
2074
+ "case",
2075
+ ["has", "sort_key"],
2076
+ ["get", "sort_key"],
2077
+ ["get", "min_zoom"]
2078
+ ],
2079
+ "text-padding": [
2080
+ "interpolate",
2081
+ ["linear"],
2082
+ ["zoom"],
2083
+ 5,
2084
+ 3,
2085
+ 8,
2086
+ 7,
2087
+ 12,
2088
+ 11
2089
+ ],
2090
+ "text-size": [
2091
+ "interpolate",
2092
+ ["linear"],
2093
+ ["zoom"],
2094
+ 2,
2095
+ [
2096
+ "case",
2097
+ ["<", ["get", "population_rank"], 13],
2098
+ 8,
2099
+ [">=", ["get", "population_rank"], 13],
2100
+ 13,
2101
+ 0
2102
+ ],
2103
+ 4,
2104
+ [
2105
+ "case",
2106
+ ["<", ["get", "population_rank"], 13],
2107
+ 12,
2108
+ [">=", ["get", "population_rank"], 13],
2109
+ 17,
2110
+ 0
2111
+ ],
2112
+ 6,
2113
+ [
2114
+ "case",
2115
+ ["<", ["get", "population_rank"], 12],
2116
+ 13,
2117
+ [">=", ["get", "population_rank"], 12],
2118
+ 18,
2119
+ 0
2120
+ ],
2121
+ 8,
2122
+ [
2123
+ "case",
2124
+ ["<", ["get", "population_rank"], 11],
2125
+ 11,
2126
+ [">=", ["get", "population_rank"], 11],
2127
+ 18,
2128
+ 0
2129
+ ],
2130
+ 10,
2131
+ [
2132
+ "case",
2133
+ ["<", ["get", "population_rank"], 9],
2134
+ 12,
2135
+ [">=", ["get", "population_rank"], 9],
2136
+ 20,
2137
+ 0
2138
+ ],
2139
+ 15,
2140
+ [
2141
+ "case",
2142
+ ["<", ["get", "population_rank"], 8],
2143
+ 12,
2144
+ [">=", ["get", "population_rank"], 8],
2145
+ 22,
2146
+ 0
2147
+ ]
2148
+ ],
2149
+ "icon-padding": [
2150
+ "interpolate",
2151
+ ["linear"],
2152
+ ["zoom"],
2153
+ 0,
2154
+ 0,
2155
+ 8,
2156
+ 6,
2157
+ 10,
2158
+ 8,
2159
+ 12,
2160
+ 6,
2161
+ 22,
2162
+ 2
2163
+ ],
2164
+ "text-justify": "auto",
2165
+ "text-variable-anchor": [
2166
+ "step",
2167
+ ["zoom"],
2168
+ ["literal", ["bottom", "left", "right", "top"]],
2169
+ 8,
2170
+ ["literal", ["center"]]
2171
+ ],
2172
+ "text-radial-offset": 0.3,
2173
+ "visibility": "visible"
2174
+ },
2175
+ "paint": {
2176
+ "text-color": "rgba(94, 68, 51, 1)",
2177
+ "text-halo-color": "rgba(253, 250, 249, 1)",
2178
+ "text-halo-width": 1
2179
+ }
2180
+ },
2181
+ {
2182
+ "id": "places_country",
2183
+ "type": "symbol",
2184
+ "source": "<BMK_BM_SRC>",
2185
+ "source-layer": "places",
2186
+ "filter": ["==", "kind", "country"],
2187
+ "layout": {
2188
+ "symbol-sort-key": [
2189
+ "case",
2190
+ ["has", "sort_key"],
2191
+ ["get", "sort_key"],
2192
+ ["get", "min_zoom"]
2193
+ ],
2194
+ "text-field": "<LANG_COUNTRY>",
2195
+ "text-font": ["Noto Sans Medium"],
2196
+ "text-size": [
2197
+ "interpolate",
2198
+ ["linear"],
2199
+ ["zoom"],
2200
+ 2,
2201
+ [
2202
+ "case",
2203
+ ["<", ["get", "population_rank"], 10],
2204
+ 12,
2205
+ [">=", ["get", "population_rank"], 10],
2206
+ 15,
2207
+ 0
2208
+ ],
2209
+ 6,
2210
+ [
2211
+ "case",
2212
+ ["<", ["get", "population_rank"], 9],
2213
+ 11,
2214
+ [">=", ["get", "population_rank"], 8],
2215
+ 18,
2216
+ 0
2217
+ ],
2218
+ 8,
2219
+ [
2220
+ "case",
2221
+ ["<", ["get", "population_rank"], 7],
2222
+ 12,
2223
+ [">=", ["get", "population_rank"], 7],
2224
+ 20,
2225
+ 0
2226
+ ]
2227
+ ],
2228
+ "icon-padding": [
2229
+ "interpolate",
2230
+ ["linear"],
2231
+ ["zoom"],
2232
+ 0,
2233
+ 2,
2234
+ 14,
2235
+ 2,
2236
+ 16,
2237
+ 20,
2238
+ 17,
2239
+ 2,
2240
+ 22,
2241
+ 2
2242
+ ],
2243
+ "text-transform": "none"
2244
+ },
2245
+ "paint": {
2246
+ "text-color": "rgba(84, 79, 73, 1)",
2247
+ "text-halo-color": "rgba(255, 255, 255, 1)",
2248
+ "text-halo-width": 1.5
2249
+ }
2250
+ },
2251
+ {
2252
+ "id": "building_extrusion",
2253
+ "type": "fill-extrusion",
2254
+ "source": "<BMK_BM_SRC>",
2255
+ "source-layer": "buildings",
2256
+ "filter": [
2257
+ "any",
2258
+ ["==", "kind", "building_part"],
2259
+ ["==", "kind", "building"]
2260
+ ],
2261
+ "layout": {"visibility": "none"},
2262
+ "paint": {
2263
+ "fill-extrusion-opacity": 0.1,
2264
+ "fill-extrusion-height": {"type": "identity", "property": "height"}
2265
+ }
2266
+ }
2267
+
2268
+ ]`, Y = `[
2269
+ {
2270
+ "id": "background",
2271
+ "type": "background",
2272
+ "layout": {"visibility": "visible"},
2273
+ "paint": {"background-color": "rgb(106, 159, 193)"}
2274
+ },
2275
+ {
2276
+ "id": "water",
2277
+ "type": "fill",
2278
+ "source": "<BMK_BM_SRC>",
2279
+ "source-layer": "water",
2280
+ "filter": ["==", "$type", "Polygon"],
2281
+ "layout": {"visibility": "visible"},
2282
+ "paint": {"fill-opacity": 0.5, "fill-color": "#000"}
2283
+ },
2284
+ {
2285
+ "id": "landuse_pedestrian",
2286
+ "type": "fill",
2287
+ "source": "<BMK_BM_SRC>",
2288
+ "source-layer": "landuse",
2289
+ "filter": ["in", "kind", "pedestrian", "dam"],
2290
+ "layout": {"visibility": "visible"},
2291
+ "paint": {"fill-color": "rgb(106, 159, 193)"}
2292
+ },
2293
+ {
2294
+ "id": "parks",
2295
+ "type": "fill",
2296
+ "source": "<BMK_BM_SRC>",
2297
+ "source-layer": "landuse",
2298
+ "minzoom": 7,
2299
+ "filter": ["all", ["==", "kind", "park"]],
2300
+ "layout": {"visibility": "visible"},
2301
+ "paint": {"fill-opacity": 0.2, "fill-color": "#000"}
2302
+ },
2303
+ {
2304
+ "id": "military_contour",
2305
+ "type": "line",
2306
+ "source": "<BMK_BM_SRC>",
2307
+ "source-layer": "landuse",
2308
+ "minzoom": 6,
2309
+ "filter": ["all", ["==", "kind", "military"]],
2310
+ "paint": {
2311
+ "line-dasharray": [2, 2],
2312
+ "line-opacity": {"stops": [[6, 0.25], [10, 0.5]]},
2313
+ "line-width": {"stops": [[6, 1], [10, 2]], "base": 1.6}
2314
+ }
2315
+ },
2316
+ {
2317
+ "id": "landuse_runway",
2318
+ "type": "fill",
2319
+ "source": "<BMK_BM_SRC>",
2320
+ "source-layer": "landuse",
2321
+ "filter": ["any", ["in", "kind", "runway", "taxiway"]],
2322
+ "layout": {"visibility": "visible"},
2323
+ "paint": {"fill-color": "#ffffff", "fill-opacity": 0.3}
2324
+ },
2325
+ {
2326
+ "id": "landuse_wetland",
2327
+ "type": "fill",
2328
+ "source": "<BMK_BM_SRC>",
2329
+ "source-layer": "landuse",
2330
+ "filter": ["all", ["==", "kind", "wetland"]],
2331
+ "layout": {"visibility": "visible"},
2332
+ "paint": {"fill-opacity": 0.08, "fill-color": "#000000"}
2333
+ },
2334
+ {
2335
+ "id": "hillshader",
2336
+ "type": "hillshade",
2337
+ "source": "__bmk_tr_src",
2338
+ "layout": {"visibility": "visible"},
2339
+ "paint": {
2340
+ "hillshade-illumination-anchor": "viewport",
2341
+ "hillshade-exaggeration": [
2342
+ "interpolate",
2343
+ ["exponential", 1.6],
2344
+ ["zoom"],
2345
+ 0,
2346
+ 0.05,
2347
+ 4,
2348
+ 0.05,
2349
+ 7,
2350
+ 0.15,
2351
+ 10,
2352
+ 0.2,
2353
+ 15,
2354
+ 0.2,
2355
+ 17,
2356
+ 0.1
2357
+ ],
2358
+ "hillshade-shadow-color": "#000000",
2359
+ "hillshade-highlight-color": "#ffffff",
2360
+ "hillshade-accent-color": "#ffffff",
2361
+ "hillshade-illumination-direction": ["literal", 310]
2362
+ }
2363
+ },
2364
+ {
2365
+ "id": "roads_runway",
2366
+ "type": "line",
2367
+ "source": "<BMK_BM_SRC>",
2368
+ "source-layer": "roads",
2369
+ "filter": ["==", "kind_detail", "runway"],
2370
+ "layout": {"visibility": "visible"},
2371
+ "paint": {
2372
+ "line-color": "#ffffff",
2373
+ "line-width": [
2374
+ "interpolate",
2375
+ ["exponential", 1.6],
2376
+ ["zoom"],
2377
+ 10,
2378
+ 0,
2379
+ 12,
2380
+ 4,
2381
+ 18,
2382
+ 30
2383
+ ],
2384
+ "line-opacity": 0.3
2385
+ }
2386
+ },
2387
+ {
2388
+ "id": "roads_taxiway",
2389
+ "type": "line",
2390
+ "source": "<BMK_BM_SRC>",
2391
+ "source-layer": "roads",
2392
+ "minzoom": 13,
2393
+ "filter": ["==", "kind_detail", "taxiway"],
2394
+ "layout": {"visibility": "visible"},
2395
+ "paint": {
2396
+ "line-color": "#e9e9ed",
2397
+ "line-width": [
2398
+ "interpolate",
2399
+ ["exponential", 1.6],
2400
+ ["zoom"],
2401
+ 13,
2402
+ 0,
2403
+ 13.5,
2404
+ 1,
2405
+ 15,
2406
+ 6
2407
+ ]
2408
+ }
2409
+ },
2410
+ {
2411
+ "id": "water_stream",
2412
+ "type": "line",
2413
+ "source": "<BMK_BM_SRC>",
2414
+ "source-layer": "water",
2415
+ "minzoom": 14,
2416
+ "filter": ["in", "kind", "stream"],
2417
+ "layout": {"visibility": "visible"},
2418
+ "paint": {
2419
+ "line-width": 0.5,
2420
+ "line-color": "#000000",
2421
+ "line-opacity": 0.35
2422
+ }
2423
+ },
2424
+ {
2425
+ "id": "roads_tunnels_other",
2426
+ "type": "line",
2427
+ "source": "<BMK_BM_SRC>",
2428
+ "source-layer": "roads",
2429
+ "filter": ["all", ["has", "is_tunnel"], ["in", "kind", "other", "path"]],
2430
+ "paint": {
2431
+ "line-color": "#d5d5d5",
2432
+ "line-dasharray": [4.5, 0.5],
2433
+ "line-width": [
2434
+ "interpolate",
2435
+ ["exponential", 1.6],
2436
+ ["zoom"],
2437
+ 14,
2438
+ 0,
2439
+ 20,
2440
+ 7
2441
+ ]
2442
+ }
2443
+ },
2444
+ {
2445
+ "id": "roads_tunnels_minor",
2446
+ "type": "line",
2447
+ "source": "<BMK_BM_SRC>",
2448
+ "source-layer": "roads",
2449
+ "filter": ["all", ["has", "is_tunnel"], ["==", "kind", "minor_road"]],
2450
+ "paint": {
2451
+ "line-color": "#d5d5d5",
2452
+ "line-width": [
2453
+ "interpolate",
2454
+ ["exponential", 1.6],
2455
+ ["zoom"],
2456
+ 11,
2457
+ 0,
2458
+ 12.5,
2459
+ 0.5,
2460
+ 15,
2461
+ 2,
2462
+ 18,
2463
+ 11
2464
+ ]
2465
+ }
2466
+ },
2467
+ {
2468
+ "id": "roads_tunnels_link",
2469
+ "type": "line",
2470
+ "source": "<BMK_BM_SRC>",
2471
+ "source-layer": "roads",
2472
+ "filter": ["all", ["has", "is_tunnel"], ["has", "is_link"]],
2473
+ "paint": {
2474
+ "line-color": "#ffffff",
2475
+ "line-width": [
2476
+ "interpolate",
2477
+ ["exponential", 1.6],
2478
+ ["zoom"],
2479
+ 13,
2480
+ 0,
2481
+ 13.5,
2482
+ 1,
2483
+ 18,
2484
+ 11
2485
+ ],
2486
+ "line-opacity": 0.3
2487
+ }
2488
+ },
2489
+ {
2490
+ "id": "roads_tunnels_major",
2491
+ "type": "line",
2492
+ "source": "<BMK_BM_SRC>",
2493
+ "source-layer": "roads",
2494
+ "filter": ["all", ["has", "is_tunnel"], ["==", "kind", "major_road"]],
2495
+ "paint": {
2496
+ "line-color": "#d5d5d5",
2497
+ "line-width": [
2498
+ "interpolate",
2499
+ ["exponential", 1.6],
2500
+ ["zoom"],
2501
+ 6,
2502
+ 0,
2503
+ 12,
2504
+ 1.6,
2505
+ 15,
2506
+ 3,
2507
+ 18,
2508
+ 13
2509
+ ]
2510
+ }
2511
+ },
2512
+ {
2513
+ "id": "roads_tunnels_highway",
2514
+ "type": "line",
2515
+ "source": "<BMK_BM_SRC>",
2516
+ "source-layer": "roads",
2517
+ "filter": [
2518
+ "all",
2519
+ ["has", "is_tunnel"],
2520
+ ["==", ["get", "kind"], "highway"],
2521
+ ["!", ["has", "is_link"]]
2522
+ ],
2523
+ "paint": {
2524
+ "line-width": [
2525
+ "interpolate",
2526
+ ["exponential", 1.6],
2527
+ ["zoom"],
2528
+ 3,
2529
+ 0,
2530
+ 6,
2531
+ 1.1,
2532
+ 12,
2533
+ 1.6,
2534
+ 15,
2535
+ 5,
2536
+ 18,
2537
+ 15
2538
+ ],
2539
+ "line-color": "#ffffff",
2540
+ "line-opacity": 0.3
2541
+ }
2542
+ },
2543
+ {
2544
+ "id": "buildings",
2545
+ "type": "fill",
2546
+ "source": "<BMK_BM_SRC>",
2547
+ "source-layer": "buildings",
2548
+ "filter": ["in", "kind", "building", "building_part"],
2549
+ "layout": {"visibility": "visible"},
2550
+ "minzoom": 14,
2551
+ "paint": {
2552
+ "fill-opacity": [
2553
+ "interpolate",
2554
+ ["exponential", 1.6],
2555
+ ["zoom"],
2556
+ 14,
2557
+ 0,
2558
+ 15,
2559
+ 0.08
2560
+ ],
2561
+ "fill-color": "#000"
2562
+ }
2563
+ },
2564
+ {
2565
+ "id": "roads_pier",
2566
+ "type": "line",
2567
+ "source": "<BMK_BM_SRC>",
2568
+ "source-layer": "roads",
2569
+ "filter": ["==", "kind_detail", "pier"],
2570
+ "paint": {
2571
+ "line-color": "#e0e0e0",
2572
+ "line-width": [
2573
+ "interpolate",
2574
+ ["exponential", 1.6],
2575
+ ["zoom"],
2576
+ 12,
2577
+ 0,
2578
+ 12.5,
2579
+ 0.5,
2580
+ 20,
2581
+ 16
2582
+ ]
2583
+ }
2584
+ },
2585
+ {
2586
+ "id": "roads_other",
2587
+ "type": "line",
2588
+ "source": "<BMK_BM_SRC>",
2589
+ "source-layer": "roads",
2590
+ "minzoom": 13,
2591
+ "filter": [
2592
+ "all",
2593
+ ["!has", "is_tunnel"],
2594
+ ["!has", "is_bridge"],
2595
+ ["in", "kind", "other", "path"],
2596
+ ["!=", "kind_detail", "pier"]
2597
+ ],
2598
+ "layout": {"visibility": "visible"},
2599
+ "paint": {
2600
+ "line-dasharray": [3, 1.5],
2601
+ "line-width": [
2602
+ "interpolate",
2603
+ ["exponential", 1.6],
2604
+ ["zoom"],
2605
+ 14,
2606
+ 1.5,
2607
+ 20,
2608
+ 9
2609
+ ],
2610
+ "line-color": "#ffffff",
2611
+ "line-opacity": 0.3
2612
+ }
2613
+ },
2614
+ {
2615
+ "id": "roads_link",
2616
+ "type": "line",
2617
+ "source": "<BMK_BM_SRC>",
2618
+ "source-layer": "roads",
2619
+ "filter": ["has", "is_link"],
2620
+ "paint": {
2621
+ "line-width": [
2622
+ "interpolate",
2623
+ ["exponential", 1.6],
2624
+ ["zoom"],
2625
+ 6,
2626
+ 0.5,
2627
+ 13.5,
2628
+ 1,
2629
+ 18,
2630
+ 11
2631
+ ],
2632
+ "line-color": "#ffffff",
2633
+ "line-opacity": 0.3
2634
+ }
2635
+ },
2636
+ {
2637
+ "id": "roads_minor_service",
2638
+ "type": "line",
2639
+ "source": "<BMK_BM_SRC>",
2640
+ "source-layer": "roads",
2641
+ "filter": [
2642
+ "all",
2643
+ ["!has", "is_tunnel"],
2644
+ ["!has", "is_bridge"],
2645
+ ["==", "kind", "minor_road"],
2646
+ ["==", "kind_detail", "service"]
2647
+ ],
2648
+ "paint": {
2649
+ "line-width": [
2650
+ "interpolate",
2651
+ ["exponential", 1.6],
2652
+ ["zoom"],
2653
+ 13,
2654
+ 0,
2655
+ 18,
2656
+ 8
2657
+ ],
2658
+ "line-color": "#ffffff",
2659
+ "line-opacity": 0.3
2660
+ }
2661
+ },
2662
+ {
2663
+ "id": "roads_minor",
2664
+ "type": "line",
2665
+ "source": "<BMK_BM_SRC>",
2666
+ "source-layer": "roads",
2667
+ "filter": [
2668
+ "all",
2669
+ ["!has", "is_tunnel"],
2670
+ ["!has", "is_bridge"],
2671
+ ["==", "kind", "minor_road"],
2672
+ ["!=", "kind_detail", "service"]
2673
+ ],
2674
+ "layout": {"visibility": "visible"},
2675
+ "paint": {
2676
+ "line-width": [
2677
+ "interpolate",
2678
+ ["exponential", 1.6],
2679
+ ["zoom"],
2680
+ 11,
2681
+ 0,
2682
+ 12.5,
2683
+ 0.5,
2684
+ 15,
2685
+ 2,
2686
+ 18,
2687
+ 11
2688
+ ],
2689
+ "line-color": "#ffffff",
2690
+ "line-opacity": 0.3
2691
+ }
2692
+ },
2693
+ {
2694
+ "id": "roads_major",
2695
+ "type": "line",
2696
+ "source": "<BMK_BM_SRC>",
2697
+ "source-layer": "roads",
2698
+ "filter": [
2699
+ "all",
2700
+ ["!has", "is_tunnel"],
2701
+ ["!has", "is_bridge"],
2702
+ ["in", "kind", "major_road"]
2703
+ ],
2704
+ "layout": {"visibility": "visible"},
2705
+ "paint": {
2706
+ "line-width": [
2707
+ "interpolate",
2708
+ ["exponential", 1.6],
2709
+ ["zoom"],
2710
+ 3,
2711
+ 0,
2712
+ 6,
2713
+ 1.1,
2714
+ 12,
2715
+ 1.6,
2716
+ 15,
2717
+ 5,
2718
+ 18,
2719
+ 15
2720
+ ],
2721
+ "line-opacity": 0.3,
2722
+ "line-color": "#ffffff"
2723
+ }
2724
+ },
2725
+ {
2726
+ "id": "roads_highway",
2727
+ "type": "line",
2728
+ "source": "<BMK_BM_SRC>",
2729
+ "source-layer": "roads",
2730
+ "filter": [
2731
+ "all",
2732
+ ["!has", "is_tunnel"],
2733
+ ["!has", "is_bridge"],
2734
+ ["==", "kind", "highway"],
2735
+ ["!has", "is_link"]
2736
+ ],
2737
+ "layout": {"visibility": "visible"},
2738
+ "paint": {
2739
+ "line-width": [
2740
+ "interpolate",
2741
+ ["exponential", 1.6],
2742
+ ["zoom"],
2743
+ 3,
2744
+ 0,
2745
+ 6,
2746
+ 1.1,
2747
+ 12,
2748
+ 1.6,
2749
+ 15,
2750
+ 5,
2751
+ 18,
2752
+ 15
2753
+ ],
2754
+ "line-color": "#ffffff",
2755
+ "line-opacity": 0.3
2756
+ }
2757
+ },
2758
+ {
2759
+ "id": "roads_rail",
2760
+ "type": "line",
2761
+ "source": "<BMK_BM_SRC>",
2762
+ "source-layer": "roads",
2763
+ "filter": ["==", "kind", "rail"],
2764
+ "layout": {"visibility": "visible"},
2765
+ "paint": {
2766
+ "line-dasharray": [0.3, 0.75],
2767
+ "line-opacity": 0.3,
2768
+ "line-color": "#ffffff",
2769
+ "line-width": [
2770
+ "interpolate",
2771
+ ["exponential", 1.6],
2772
+ ["zoom"],
2773
+ 3,
2774
+ 0,
2775
+ 6,
2776
+ 0.15,
2777
+ 18,
2778
+ 6
2779
+ ]
2780
+ }
2781
+ },
2782
+ {
2783
+ "id": "boundaries_country",
2784
+ "type": "line",
2785
+ "source": "<BMK_BM_SRC>",
2786
+ "source-layer": "boundaries",
2787
+ "minzoom": 0,
2788
+ "filter": ["<=", "kind_detail", 2],
2789
+ "layout": {"visibility": "visible"},
2790
+ "paint": {
2791
+ "line-opacity": 0.5,
2792
+ "line-width": [
2793
+ "interpolate",
2794
+ ["exponential", 1.6],
2795
+ ["zoom"],
2796
+ 0,
2797
+ 1,
2798
+ 3,
2799
+ 1,
2800
+ 5,
2801
+ 1.5,
2802
+ 8,
2803
+ 3,
2804
+ 10,
2805
+ 4,
2806
+ 15,
2807
+ 7
2808
+ ],
2809
+ "line-color": "#000000"
2810
+ }
2811
+ },
2812
+ {
2813
+ "id": "boundaries",
2814
+ "type": "line",
2815
+ "source": "<BMK_BM_SRC>",
2816
+ "source-layer": "boundaries",
2817
+ "filter": [">", "kind_detail", 2],
2818
+ "layout": {"visibility": "visible"},
2819
+ "paint": {
2820
+ "line-width": 1,
2821
+ "line-dasharray": [
2822
+ "step",
2823
+ ["zoom"],
2824
+ ["literal", [2]],
2825
+ 4,
2826
+ ["literal", [2, 2]]
2827
+ ],
2828
+ "line-color": "#000000",
2829
+ "line-opacity": 0.5
2830
+ }
2831
+ },
2832
+ {
2833
+ "id": "roads_bridges_other",
2834
+ "type": "line",
2835
+ "source": "<BMK_BM_SRC>",
2836
+ "source-layer": "roads",
2837
+ "minzoom": 12,
2838
+ "filter": ["all", ["has", "is_bridge"], ["in", "kind", "other", "path"]],
2839
+ "layout": {"visibility": "visible"},
2840
+ "paint": {
2841
+ "line-color": "#ebebeb",
2842
+ "line-dasharray": [2, 1],
2843
+ "line-width": [
2844
+ "interpolate",
2845
+ ["exponential", 1.6],
2846
+ ["zoom"],
2847
+ 14,
2848
+ 0,
2849
+ 20,
2850
+ 7
2851
+ ]
2852
+ }
2853
+ },
2854
+ {
2855
+ "id": "roads_bridges_minor",
2856
+ "type": "line",
2857
+ "source": "<BMK_BM_SRC>",
2858
+ "source-layer": "roads",
2859
+ "minzoom": 12,
2860
+ "filter": ["all", ["has", "is_bridge"], ["==", "kind", "minor_road"]],
2861
+ "paint": {
2862
+ "line-color": "#ffffff",
2863
+ "line-width": [
2864
+ "interpolate",
2865
+ ["exponential", 1.6],
2866
+ ["zoom"],
2867
+ 11,
2868
+ 0,
2869
+ 12.5,
2870
+ 0.5,
2871
+ 15,
2872
+ 2,
2873
+ 18,
2874
+ 11
2875
+ ]
2876
+ }
2877
+ },
2878
+ {
2879
+ "id": "roads_bridges_link",
2880
+ "type": "line",
2881
+ "source": "<BMK_BM_SRC>",
2882
+ "source-layer": "roads",
2883
+ "minzoom": 12,
2884
+ "filter": ["all", ["has", "is_bridge"], ["has", "is_link"]],
2885
+ "paint": {
2886
+ "line-color": "#ffffff",
2887
+ "line-width": [
2888
+ "interpolate",
2889
+ ["exponential", 1.6],
2890
+ ["zoom"],
2891
+ 13,
2892
+ 0,
2893
+ 13.5,
2894
+ 1,
2895
+ 18,
2896
+ 11
2897
+ ],
2898
+ "line-opacity": 0.3
2899
+ }
2900
+ },
2901
+ {
2902
+ "id": "roads_bridges_major",
2903
+ "type": "line",
2904
+ "source": "<BMK_BM_SRC>",
2905
+ "source-layer": "roads",
2906
+ "minzoom": 12,
2907
+ "filter": ["all", ["has", "is_bridge"], ["==", "kind", "major_road"]],
2908
+ "paint": {
2909
+ "line-color": "#ffffff",
2910
+ "line-width": [
2911
+ "interpolate",
2912
+ ["exponential", 1.6],
2913
+ ["zoom"],
2914
+ 6,
2915
+ 0,
2916
+ 12,
2917
+ 1.6,
2918
+ 15,
2919
+ 3,
2920
+ 18,
2921
+ 13
2922
+ ],
2923
+ "line-opacity": 0.3
2924
+ }
2925
+ },
2926
+ {
2927
+ "id": "cycleway",
2928
+ "type": "line",
2929
+ "source": "<BMK_BM_SRC>",
2930
+ "source-layer": "roads",
2931
+ "filter": ["any", ["==", "kind_detail", "cycleway"]],
2932
+ "layout": {"visibility": "visible"},
2933
+ "paint": {
2934
+ "line-width": [
2935
+ "interpolate",
2936
+ ["exponential", 1.6],
2937
+ ["zoom"],
2938
+ 12.5,
2939
+ 1,
2940
+ 15,
2941
+ 2,
2942
+ 18,
2943
+ 4
2944
+ ],
2945
+ "line-color": "#ffffff",
2946
+ "line-dasharray": [3, 1.5],
2947
+ "line-opacity": 0.5
2948
+ }
2949
+ },
2950
+ {
2951
+ "id": "roads_bridges_highway",
2952
+ "type": "line",
2953
+ "source": "<BMK_BM_SRC>",
2954
+ "source-layer": "roads",
2955
+ "filter": [
2956
+ "all",
2957
+ ["has", "is_bridge"],
2958
+ ["==", "kind", "highway"],
2959
+ ["!has", "is_link"]
2960
+ ],
2961
+ "paint": {
2962
+ "line-color": "#ffffff",
2963
+ "line-width": [
2964
+ "interpolate",
2965
+ ["exponential", 1.6],
2966
+ ["zoom"],
2967
+ 3,
2968
+ 0,
2969
+ 6,
2970
+ 1.1,
2971
+ 12,
2972
+ 1.6,
2973
+ 15,
2974
+ 5,
2975
+ 18,
2976
+ 15
2977
+ ],
2978
+ "line-opacity": 0.3
2979
+ }
2980
+ },
2981
+ {
2982
+ "id": "water_waterway_label",
2983
+ "type": "symbol",
2984
+ "source": "<BMK_BM_SRC>",
2985
+ "source-layer": "water",
2986
+ "minzoom": 13,
2987
+ "filter": ["in", "kind", "river", "stream"],
2988
+ "layout": {
2989
+ "symbol-placement": "line",
2990
+ "text-font": ["Noto Sans Italic"],
2991
+ "text-field": "<LANG>",
2992
+ "text-size": 12,
2993
+ "text-letter-spacing": 0.2
2994
+ },
2995
+ "paint": {"text-color": "rgba(0, 0, 0, 0.75)", "text-halo-width": 1}
2996
+ },
2997
+ {
2998
+ "id": "roads_labels_minor",
2999
+ "type": "symbol",
3000
+ "source": "<BMK_BM_SRC>",
3001
+ "source-layer": "roads",
3002
+ "minzoom": 15,
3003
+ "filter": ["in", "kind", "minor_road", "other", "path"],
3004
+ "layout": {
3005
+ "symbol-sort-key": ["get", "min_zoom"],
3006
+ "symbol-placement": "line",
3007
+ "text-font": ["Noto Sans Regular"],
3008
+ "text-field": "<LANG>",
3009
+ "text-size": 12,
3010
+ "visibility": "visible"
3011
+ },
3012
+ "paint": {
3013
+ "text-color": "rgb(0, 0, 0)",
3014
+ "text-halo-color": "rgb(255, 255, 255)",
3015
+ "text-halo-width": 1
3016
+ }
3017
+ },
3018
+ {
3019
+ "id": "water_label_ocean",
3020
+ "type": "symbol",
3021
+ "source": "<BMK_BM_SRC>",
3022
+ "source-layer": "water",
3023
+ "filter": ["in", "kind", "sea", "ocean", "bay", "strait", "fjord"],
3024
+ "layout": {
3025
+ "text-font": ["Noto Sans Italic"],
3026
+ "text-field": "<LANG>",
3027
+ "text-size": ["interpolate", ["linear"], ["zoom"], 1, 12, 10, 12],
3028
+ "text-letter-spacing": 0.1,
3029
+ "text-max-width": 9,
3030
+ "text-transform": "uppercase"
3031
+ },
3032
+ "paint": {
3033
+ "text-color": "rgba(0, 0, 0, 0.7)"
3034
+ }
3035
+ },
3036
+ {
3037
+ "id": "earth_label_islands",
3038
+ "type": "symbol",
3039
+ "source": "<BMK_BM_SRC>",
3040
+ "source-layer": "earth",
3041
+ "filter": ["in", "kind", "island"],
3042
+ "layout": {
3043
+ "text-font": ["Noto Sans Italic"],
3044
+ "text-field": "<LANG>",
3045
+ "text-size": 10,
3046
+ "text-letter-spacing": 0.1,
3047
+ "text-max-width": 8
3048
+ },
3049
+ "paint": {
3050
+ "text-color": "rgba(0, 0, 0, 0.85)",
3051
+ "text-halo-color": "rgba(255, 255, 255, 0.85)",
3052
+ "text-halo-width": 1
3053
+ }
3054
+ },
3055
+ {
3056
+ "id": "water_label_lakes",
3057
+ "type": "symbol",
3058
+ "source": "<BMK_BM_SRC>",
3059
+ "source-layer": "water",
3060
+ "filter": ["in", "kind", "lake", "water"],
3061
+ "layout": {
3062
+ "text-font": ["Noto Sans Italic"],
3063
+ "text-field": "<LANG>",
3064
+ "text-size": [
3065
+ "interpolate",
3066
+ ["linear"],
3067
+ ["zoom"],
3068
+ 3,
3069
+ 10,
3070
+ 6,
3071
+ 12,
3072
+ 10,
3073
+ 12
3074
+ ],
3075
+ "text-letter-spacing": 0.1,
3076
+ "text-max-width": 9
3077
+ },
3078
+ "paint": {"text-color": "rgba(0, 0, 0, 0.75)", "text-halo-width": 1}
3079
+ },
3080
+ {
3081
+ "id": "roads_labels_major",
3082
+ "type": "symbol",
3083
+ "source": "<BMK_BM_SRC>",
3084
+ "source-layer": "roads",
3085
+ "minzoom": 11,
3086
+ "filter": ["in", "kind", "highway", "major_road"],
3087
+ "layout": {
3088
+ "symbol-sort-key": ["get", "min_zoom"],
3089
+ "symbol-placement": "line",
3090
+ "text-font": ["Noto Sans Regular"],
3091
+ "text-field": "<LANG>",
3092
+ "text-size": 12,
3093
+ "visibility": "visible"
3094
+ },
3095
+ "paint": {
3096
+ "text-color": "rgb(0, 0, 0)",
3097
+ "text-halo-color": "rgb(255, 255, 255)",
3098
+ "text-halo-width": 1
3099
+ }
3100
+ },
3101
+ {
3102
+ "id": "pois",
3103
+ "type": "symbol",
3104
+ "source": "<BMK_BM_SRC>",
3105
+ "source-layer": "pois",
3106
+ "filter": [
3107
+ "all",
3108
+ [
3109
+ "in",
3110
+ ["get", "kind"],
3111
+ [
3112
+ "literal",
3113
+ [
3114
+ "beach",
3115
+ "forest",
3116
+ "marina",
3117
+ "park",
3118
+ "peak",
3119
+ "zoo",
3120
+ "garden",
3121
+ "aerodrome",
3122
+ "station",
3123
+ "ferry_terminal",
3124
+ "stadium",
3125
+ "university",
3126
+ "library",
3127
+ "school",
3128
+ "animal",
3129
+ "toilet",
3130
+ "drinking_water",
3131
+ "viewpoint",
3132
+ "attraction",
3133
+ "camp_site",
3134
+ "college",
3135
+ "fishing",
3136
+ "golf_course",
3137
+ "hospital",
3138
+ "information",
3139
+ "landmark",
3140
+ "military",
3141
+ "national_park",
3142
+ "nature_reserve",
3143
+ "picnic_site",
3144
+ "picnic_table",
3145
+ "playground",
3146
+ "railway",
3147
+ "townhall",
3148
+ "zoo"
3149
+ ]
3150
+ ]
3151
+ ],
3152
+ [">=", ["zoom"], ["+", ["get", "min_zoom"], -2]]
3153
+ ],
3154
+ "layout": {
3155
+ "icon-image": [
3156
+ "match",
3157
+ ["get", "kind"],
3158
+ "park",
3159
+ "garden",
3160
+ ["get", "kind"]
3161
+ ],
3162
+ "text-font": ["Noto Sans Regular"],
3163
+ "text-justify": "auto",
3164
+ "text-field": "<LANG>",
3165
+ "text-size": ["interpolate", ["linear"], ["zoom"], 17, 12, 19, 14],
3166
+ "text-max-width": 8,
3167
+ "text-offset": [1.5, 0],
3168
+ "text-variable-anchor": ["left", "right"],
3169
+ "visibility": "visible"
3170
+ },
3171
+ "paint": {
3172
+ "text-color": "rgb(0, 0, 0)",
3173
+ "text-halo-color": "rgb(255, 255, 255)",
3174
+ "text-halo-width": 1.5
3175
+ }
3176
+ },
3177
+ {
3178
+ "id": "places_subplace",
3179
+ "type": "symbol",
3180
+ "source": "<BMK_BM_SRC>",
3181
+ "source-layer": "places",
3182
+ "filter": ["==", "kind", "neighbourhood"],
3183
+ "layout": {
3184
+ "symbol-sort-key": [
3185
+ "case",
3186
+ ["has", "sort_key"],
3187
+ ["get", "sort_key"],
3188
+ ["get", "min_zoom"]
3189
+ ],
3190
+ "text-field": "<LANG>",
3191
+ "text-font": ["Noto Sans Regular"],
3192
+ "text-max-width": 7,
3193
+ "text-letter-spacing": 0.1,
3194
+ "text-padding": [
3195
+ "interpolate",
3196
+ ["linear"],
3197
+ ["zoom"],
3198
+ 5,
3199
+ 2,
3200
+ 8,
3201
+ 4,
3202
+ 12,
3203
+ 18,
3204
+ 15,
3205
+ 20
3206
+ ],
3207
+ "text-size": [
3208
+ "interpolate",
3209
+ ["exponential", 2],
3210
+ ["zoom"],
3211
+ 11,
3212
+ 11,
3213
+ 14,
3214
+ 16,
3215
+ 18,
3216
+ 24
3217
+ ],
3218
+ "text-transform": "uppercase"
3219
+ },
3220
+ "paint": {
3221
+ "text-color": "rgb(0, 0, 0)",
3222
+ "text-halo-color": "rgba(255, 255, 255, 0.9)",
3223
+ "text-halo-width": 1.2
3224
+ }
3225
+ },
3226
+ {
3227
+ "id": "places_region",
3228
+ "type": "symbol",
3229
+ "source": "<BMK_BM_SRC>",
3230
+ "source-layer": "places",
3231
+ "filter": ["==", "kind", "region"],
3232
+ "layout": {
3233
+ "symbol-sort-key": ["get", "sort_key"],
3234
+ "text-field": "<LANG>",
3235
+ "text-font": ["Noto Sans Regular"],
3236
+ "text-size": ["interpolate", ["linear"], ["zoom"], 3, 11, 7, 16],
3237
+ "text-radial-offset": 0.2,
3238
+ "text-anchor": "center",
3239
+ "text-transform": "uppercase"
3240
+ },
3241
+ "paint": {
3242
+ "text-halo-color": "rgb(0, 0, 0)",
3243
+ "text-halo-width": 1,
3244
+ "text-color": "#ffffff"
3245
+ }
3246
+ },
3247
+ {
3248
+ "id": "places_locality_circle",
3249
+ "type": "circle",
3250
+ "minzoom": 4,
3251
+ "source": "<BMK_BM_SRC>",
3252
+ "source-layer": "places",
3253
+ "filter": ["==", "kind", "locality"],
3254
+ "maxzoom": 8,
3255
+ "paint": {
3256
+ "circle-radius": {
3257
+ "stops": [[4, 2.5], [8, 3.5]]
3258
+ },
3259
+ "circle-color": "rgba(255, 255, 255, 0.55)",
3260
+ "circle-stroke-width": 1.75,
3261
+ "circle-stroke-color": "rgba(0, 0, 0, 0.45)"
3262
+ }
3263
+ },
3264
+ {
3265
+ "id": "places_locality",
3266
+ "type": "symbol",
3267
+ "source": "<BMK_BM_SRC>",
3268
+ "source-layer": "places",
3269
+ "minzoom": 4,
3270
+ "filter": ["==", "kind", "locality"],
3271
+ "layout": {
3272
+ "icon-image": ["step", ["zoom"], "townspot", 8, ""],
3273
+ "icon-size": 0.7,
3274
+ "text-field": "<LANG>",
3275
+ "text-font": [
3276
+ "case",
3277
+ ["<=", ["get", "min_zoom"], 5],
3278
+ ["literal", ["Noto Sans Medium"]],
3279
+ ["literal", ["Noto Sans Regular"]]
3280
+ ],
3281
+ "symbol-sort-key": [
3282
+ "case",
3283
+ ["has", "sort_key"],
3284
+ ["get", "sort_key"],
3285
+ ["get", "min_zoom"]
3286
+ ],
3287
+ "text-padding": [
3288
+ "interpolate",
3289
+ ["linear"],
3290
+ ["zoom"],
3291
+ 5,
3292
+ 3,
3293
+ 8,
3294
+ 7,
3295
+ 12,
3296
+ 11
3297
+ ],
3298
+ "text-size": [
3299
+ "interpolate",
3300
+ ["linear"],
3301
+ ["zoom"],
3302
+ 2,
3303
+ [
3304
+ "case",
3305
+ ["<", ["get", "population_rank"], 13],
3306
+ 10,
3307
+ [">=", ["get", "population_rank"], 13],
3308
+ 15,
3309
+ 0
3310
+ ],
3311
+ 4,
3312
+ [
3313
+ "case",
3314
+ ["<", ["get", "population_rank"], 13],
3315
+ 12,
3316
+ [">=", ["get", "population_rank"], 13],
3317
+ 17,
3318
+ 0
3319
+ ],
3320
+ 6,
3321
+ [
3322
+ "case",
3323
+ ["<", ["get", "population_rank"], 12],
3324
+ 14,
3325
+ [">=", ["get", "population_rank"], 12],
3326
+ 17,
3327
+ 0
3328
+ ],
3329
+ 8,
3330
+ [
3331
+ "case",
3332
+ ["<", ["get", "population_rank"], 11],
3333
+ 13,
3334
+ [">=", ["get", "population_rank"], 11],
3335
+ 20,
3336
+ 0
3337
+ ],
3338
+ 10,
3339
+ [
3340
+ "case",
3341
+ ["<", ["get", "population_rank"], 9],
3342
+ 14,
3343
+ [">=", ["get", "population_rank"], 9],
3344
+ 20,
3345
+ 0
3346
+ ],
3347
+ 15,
3348
+ [
3349
+ "case",
3350
+ ["<", ["get", "population_rank"], 8],
3351
+ 14,
3352
+ [">=", ["get", "population_rank"], 8],
3353
+ 22,
3354
+ 0
3355
+ ]
3356
+ ],
3357
+ "icon-padding": [
3358
+ "interpolate",
3359
+ ["linear"],
3360
+ ["zoom"],
3361
+ 0,
3362
+ 0,
3363
+ 8,
3364
+ 6,
3365
+ 10,
3366
+ 8,
3367
+ 12,
3368
+ 6,
3369
+ 22,
3370
+ 2
3371
+ ],
3372
+ "text-justify": "auto",
3373
+ "text-variable-anchor": [
3374
+ "step",
3375
+ ["zoom"],
3376
+ ["literal", ["bottom", "left", "right", "top"]],
3377
+ 8,
3378
+ ["literal", ["center"]]
3379
+ ],
3380
+ "text-radial-offset": 0.3,
3381
+ "visibility": "visible"
3382
+ },
3383
+ "paint": {
3384
+ "text-color": "rgb(0, 0, 0)",
3385
+ "text-halo-color": "rgb(255, 255, 255)",
3386
+ "text-halo-width": 1
3387
+ }
3388
+ },
3389
+ {
3390
+ "id": "places_country",
3391
+ "type": "symbol",
3392
+ "source": "<BMK_BM_SRC>",
3393
+ "source-layer": "places",
3394
+ "filter": ["==", "kind", "country"],
3395
+ "layout": {
3396
+ "symbol-sort-key": [
3397
+ "case",
3398
+ ["has", "sort_key"],
3399
+ ["get", "sort_key"],
3400
+ ["get", "min_zoom"]
3401
+ ],
3402
+ "text-field": "<LANG_COUNTRY>",
3403
+ "text-font": ["Noto Sans Medium"],
3404
+ "text-size": [
3405
+ "interpolate",
3406
+ ["linear"],
3407
+ ["zoom"],
3408
+ 2,
3409
+ [
3410
+ "case",
3411
+ ["<", ["get", "population_rank"], 10],
3412
+ 12,
3413
+ [">=", ["get", "population_rank"], 10],
3414
+ 15,
3415
+ 0
3416
+ ],
3417
+ 6,
3418
+ [
3419
+ "case",
3420
+ ["<", ["get", "population_rank"], 9],
3421
+ 11,
3422
+ [">=", ["get", "population_rank"], 8],
3423
+ 18,
3424
+ 0
3425
+ ],
3426
+ 8,
3427
+ [
3428
+ "case",
3429
+ ["<", ["get", "population_rank"], 7],
3430
+ 12,
3431
+ [">=", ["get", "population_rank"], 7],
3432
+ 20,
3433
+ 0
3434
+ ]
3435
+ ],
3436
+ "icon-padding": [
3437
+ "interpolate",
3438
+ ["linear"],
3439
+ ["zoom"],
3440
+ 0,
3441
+ 2,
3442
+ 14,
3443
+ 2,
3444
+ 16,
3445
+ 20,
3446
+ 17,
3447
+ 2,
3448
+ 22,
3449
+ 2
3450
+ ],
3451
+ "text-transform": "none"
3452
+ },
3453
+ "paint": {
3454
+ "text-color": "rgb(0, 0, 0)",
3455
+ "text-halo-color": "rgb(255, 255, 255)",
3456
+ "text-halo-width": 1.1
3457
+ }
3458
+ }
3459
+ ]`, J = `[
3460
+ {
3461
+ "id": "background",
3462
+ "type": "background",
3463
+ "layout": {"visibility": "visible"},
3464
+ "paint": {"background-color": "#f7eeda"}
3465
+ },
3466
+ {
3467
+ "id": "water",
3468
+ "type": "fill",
3469
+ "source": "<BMK_BM_SRC>",
3470
+ "source-layer": "water",
3471
+ "filter": ["==", "$type", "Polygon"],
3472
+ "layout": {"visibility": "visible"},
3473
+ "paint": {"fill-color": "#8fc0db"}
3474
+ },
3475
+ {
3476
+ "id": "landuse_pedestrian",
3477
+ "type": "fill",
3478
+ "source": "<BMK_BM_SRC>",
3479
+ "source-layer": "landuse",
3480
+ "filter": ["in", "kind", "pedestrian", "dam"],
3481
+ "layout": {"visibility": "visible"},
3482
+ "paint": {"fill-color": "#f7eeda"}
3483
+ },
3484
+ {
3485
+ "id": "parks",
3486
+ "type": "fill",
3487
+ "source": "<BMK_BM_SRC>",
3488
+ "source-layer": "landuse",
3489
+ "minzoom": 8,
3490
+ "filter": ["all", ["==", "kind", "park"]],
3491
+ "layout": {"visibility": "visible"},
3492
+ "paint": {
3493
+ "fill-opacity": [
3494
+ "interpolate",
3495
+ ["exponential", 1.6],
3496
+ ["zoom"],
3497
+ 8,
3498
+ 0,
3499
+ 9,
3500
+ 0.05,
3501
+ 12,
3502
+ 0.05,
3503
+ 15,
3504
+ 0.2
3505
+ ],
3506
+ "fill-color": "#000"
3507
+ }
3508
+ },
3509
+ {
3510
+ "id": "military",
3511
+ "type": "fill",
3512
+ "source": "<BMK_BM_SRC>",
3513
+ "source-layer": "landuse",
3514
+ "minzoom": 6,
3515
+ "filter": ["all", ["==", "kind", "military"]],
3516
+ "layout": {"visibility": "visible"},
3517
+ "paint": {
3518
+ "fill-opacity": {"stops": [[6, 0], [7, 0.15]], "base": 1.6},
3519
+ "fill-color": "#fff"
3520
+ }
3521
+ },
3522
+ {
3523
+ "id": "military_contour",
3524
+ "type": "line",
3525
+ "source": "<BMK_BM_SRC>",
3526
+ "source-layer": "landuse",
3527
+ "minzoom": 6,
3528
+ "filter": ["all", ["==", "kind", "military"]],
3529
+ "paint": {
3530
+ "line-dasharray": [2, 2],
3531
+ "line-opacity": {"stops": [[6, 0.25], [10, 0.5]]},
3532
+ "line-width": {"stops": [[6, 1], [10, 2]], "base": 1.6}
3533
+ }
3534
+ },
3535
+ {
3536
+ "id": "landuse_runway",
3537
+ "type": "fill",
3538
+ "source": "<BMK_BM_SRC>",
3539
+ "source-layer": "landuse",
3540
+ "filter": ["any", ["in", "kind", "runway", "taxiway"]],
3541
+ "layout": {"visibility": "visible"},
3542
+ "paint": {"fill-color": "#ffffff", "fill-opacity": 0.7}
3543
+ },
3544
+ {
3545
+ "id": "landuse_wetland",
3546
+ "type": "fill",
3547
+ "source": "<BMK_BM_SRC>",
3548
+ "source-layer": "landuse",
3549
+ "filter": ["all", ["==", "kind", "wetland"]],
3550
+ "layout": {"visibility": "visible"},
3551
+ "paint": {"fill-opacity": 0.04, "fill-color": "#000000"}
3552
+ },
3553
+ {
3554
+ "id": "hillshader",
3555
+ "type": "hillshade",
3556
+ "source": "__bmk_tr_src",
3557
+ "layout": {"visibility": "visible"},
3558
+ "paint": {
3559
+ "hillshade-illumination-anchor": "viewport",
3560
+ "hillshade-exaggeration": [
3561
+ "interpolate",
3562
+ ["exponential", 1.6],
3563
+ ["zoom"],
3564
+ 0,
3565
+ 0.05,
3566
+ 4,
3567
+ 0.05,
3568
+ 7,
3569
+ 0.1,
3570
+ 10,
3571
+ 0.12,
3572
+ 15,
3573
+ 0.1,
3574
+ 17,
3575
+ 0.02
3576
+ ],
3577
+ "hillshade-shadow-color": "#000000",
3578
+ "hillshade-highlight-color": "#ffffff",
3579
+ "hillshade-accent-color": "#ffffff",
3580
+ "hillshade-illumination-direction": ["literal", 310]
3581
+ }
3582
+ },
3583
+ {
3584
+ "id": "roads_runway",
3585
+ "type": "line",
3586
+ "source": "<BMK_BM_SRC>",
3587
+ "source-layer": "roads",
3588
+ "filter": ["==", "kind_detail", "runway"],
3589
+ "layout": {"visibility": "visible"},
3590
+ "paint": {
3591
+ "line-color": "#ffffff",
3592
+ "line-width": [
3593
+ "interpolate",
3594
+ ["exponential", 1.6],
3595
+ ["zoom"],
3596
+ 10,
3597
+ 0,
3598
+ 12,
3599
+ 4,
3600
+ 18,
3601
+ 30
3602
+ ],
3603
+ "line-opacity": 0.7
3604
+ }
3605
+ },
3606
+ {
3607
+ "id": "roads_taxiway",
3608
+ "type": "line",
3609
+ "source": "<BMK_BM_SRC>",
3610
+ "source-layer": "roads",
3611
+ "minzoom": 13,
3612
+ "filter": ["==", "kind_detail", "taxiway"],
3613
+ "layout": {"visibility": "visible"},
3614
+ "paint": {
3615
+ "line-opacity": 0.85,
3616
+ "line-color": "#fff",
3617
+ "line-width": [
3618
+ "interpolate",
3619
+ ["exponential", 1.6],
3620
+ ["zoom"],
3621
+ 13,
3622
+ 0,
3623
+ 13.5,
3624
+ 1,
3625
+ 15,
3626
+ 6
3627
+ ]
3628
+ }
3629
+ },
3630
+ {
3631
+ "id": "water_stream",
3632
+ "type": "line",
3633
+ "source": "<BMK_BM_SRC>",
3634
+ "source-layer": "water",
3635
+ "minzoom": 14,
3636
+ "filter": ["in", "kind", "stream"],
3637
+ "layout": {"visibility": "visible"},
3638
+ "paint": {
3639
+ "line-width": 0.5,
3640
+ "line-color": "#8fc0db"
3641
+ }
3642
+ },
3643
+
3644
+
3645
+
3646
+ {
3647
+ "id": "roads_tunnels_other",
3648
+ "type": "line",
3649
+ "source": "<BMK_BM_SRC>",
3650
+ "source-layer": "roads",
3651
+ "filter": ["all", ["has", "is_tunnel"], ["in", "kind", "other", "path"]],
3652
+ "paint": {
3653
+ "line-opacity": 0.1,
3654
+ "line-color": "#000",
3655
+ "line-dasharray": [4.5, 0.5],
3656
+ "line-width": [
3657
+ "interpolate",
3658
+ ["exponential", 1.6],
3659
+ ["zoom"],
3660
+ 14,
3661
+ 0,
3662
+ 20,
3663
+ 7
3664
+ ]
3665
+ }
3666
+ },
3667
+ {
3668
+ "id": "roads_tunnels_minor",
3669
+ "type": "line",
3670
+ "source": "<BMK_BM_SRC>",
3671
+ "source-layer": "roads",
3672
+ "filter": ["all", ["has", "is_tunnel"], ["==", "kind", "minor_road"]],
3673
+ "paint": {
3674
+ "line-opacity": 0.1,
3675
+ "line-color": "#000",
3676
+ "line-width": [
3677
+ "interpolate",
3678
+ ["exponential", 1.6],
3679
+ ["zoom"],
3680
+ 11,
3681
+ 0,
3682
+ 12.5,
3683
+ 0.5,
3684
+ 15,
3685
+ 2,
3686
+ 18,
3687
+ 11
3688
+ ]
3689
+ }
3690
+ },
3691
+ {
3692
+ "id": "roads_tunnels_link",
3693
+ "type": "line",
3694
+ "source": "<BMK_BM_SRC>",
3695
+ "source-layer": "roads",
3696
+ "filter": ["all", ["has", "is_tunnel"], ["has", "is_link"]],
3697
+ "paint": {
3698
+ "line-color": "#000",
3699
+ "line-width": [
3700
+ "interpolate",
3701
+ ["exponential", 1.6],
3702
+ ["zoom"],
3703
+ 13,
3704
+ 0,
3705
+ 13.5,
3706
+ 1,
3707
+ 18,
3708
+ 11
3709
+ ],
3710
+ "line-opacity": 0.1
3711
+ }
3712
+ },
3713
+ {
3714
+ "id": "roads_tunnels_major",
3715
+ "type": "line",
3716
+ "source": "<BMK_BM_SRC>",
3717
+ "source-layer": "roads",
3718
+ "filter": ["all", ["has", "is_tunnel"], ["==", "kind", "major_road"]],
3719
+ "paint": {
3720
+ "line-opacity": 0.1,
3721
+ "line-color": "#000",
3722
+ "line-width": [
3723
+ "interpolate",
3724
+ ["exponential", 1.6],
3725
+ ["zoom"],
3726
+ 6,
3727
+ 0,
3728
+ 12,
3729
+ 1.6,
3730
+ 15,
3731
+ 3,
3732
+ 18,
3733
+ 13
3734
+ ]
3735
+ }
3736
+ },
3737
+ {
3738
+ "id": "roads_tunnels_highway",
3739
+ "type": "line",
3740
+ "source": "<BMK_BM_SRC>",
3741
+ "source-layer": "roads",
3742
+ "filter": [
3743
+ "all",
3744
+ ["has", "is_tunnel"],
3745
+ ["==", ["get", "kind"], "highway"],
3746
+ ["!", ["has", "is_link"]]
3747
+ ],
3748
+ "paint": {
3749
+ "line-width": [
3750
+ "interpolate",
3751
+ ["exponential", 1.6],
3752
+ ["zoom"],
3753
+ 3,
3754
+ 0,
3755
+ 6,
3756
+ 1.1,
3757
+ 12,
3758
+ 1.6,
3759
+ 15,
3760
+ 5,
3761
+ 18,
3762
+ 15
3763
+ ],
3764
+ "line-color": "#000",
3765
+ "line-opacity": 0.1
3766
+ }
3767
+ },
3768
+ {
3769
+ "id": "buildings",
3770
+ "type": "fill",
3771
+ "source": "<BMK_BM_SRC>",
3772
+ "source-layer": "buildings",
3773
+ "filter": ["in", "kind", "building", "building_part"],
3774
+ "layout": {"visibility": "visible"},
3775
+ "minzoom": 14,
3776
+ "paint": {
3777
+ "fill-opacity": [
3778
+ "interpolate",
3779
+ ["exponential", 1.6],
3780
+ ["zoom"],
3781
+ 14,
3782
+ 0,
3783
+ 15,
3784
+ 0.08
3785
+ ],
3786
+ "fill-color": "#000"
3787
+ }
3788
+ },
3789
+ {
3790
+ "id": "roads_pier",
3791
+ "type": "line",
3792
+ "source": "<BMK_BM_SRC>",
3793
+ "source-layer": "roads",
3794
+ "filter": ["==", "kind_detail", "pier"],
3795
+ "paint": {
3796
+ "line-opacity": 0.85,
3797
+ "line-color": "#FFF",
3798
+ "line-width": [
3799
+ "interpolate",
3800
+ ["exponential", 1.6],
3801
+ ["zoom"],
3802
+ 12,
3803
+ 0,
3804
+ 12.5,
3805
+ 0.5,
3806
+ 20,
3807
+ 16
3808
+ ]
3809
+ }
3810
+ },
3811
+ {
3812
+ "id": "roads_other",
3813
+ "type": "line",
3814
+ "source": "<BMK_BM_SRC>",
3815
+ "source-layer": "roads",
3816
+ "minzoom": 13,
3817
+ "filter": [
3818
+ "all",
3819
+ ["!has", "is_tunnel"],
3820
+ ["!has", "is_bridge"],
3821
+ ["in", "kind", "other", "path"],
3822
+ ["!=", "kind_detail", "pier"]
3823
+ ],
3824
+ "layout": {"visibility": "visible"},
3825
+ "paint": {
3826
+ "line-dasharray": [3, 1.5],
3827
+ "line-width": [
3828
+ "interpolate",
3829
+ ["exponential", 1.6],
3830
+ ["zoom"],
3831
+ 14,
3832
+ 1.5,
3833
+ 20,
3834
+ 9
3835
+ ],
3836
+ "line-color": "#ffffff",
3837
+ "line-opacity": 0.85
3838
+ }
3839
+ },
3840
+ {
3841
+ "id": "roads_link",
3842
+ "type": "line",
3843
+ "source": "<BMK_BM_SRC>",
3844
+ "source-layer": "roads",
3845
+ "filter": ["has", "is_link"],
3846
+ "paint": {
3847
+ "line-width": [
3848
+ "interpolate",
3849
+ ["exponential", 1.6],
3850
+ ["zoom"],
3851
+ 6,
3852
+ 0.5,
3853
+ 13.5,
3854
+ 1,
3855
+ 18,
3856
+ 11
3857
+ ],
3858
+ "line-color": "#ffffff",
3859
+ "line-opacity": 0.85
3860
+ }
3861
+ },
3862
+ {
3863
+ "id": "roads_minor_service",
3864
+ "type": "line",
3865
+ "source": "<BMK_BM_SRC>",
3866
+ "source-layer": "roads",
3867
+ "filter": [
3868
+ "all",
3869
+ ["!has", "is_tunnel"],
3870
+ ["!has", "is_bridge"],
3871
+ ["==", "kind", "minor_road"],
3872
+ ["==", "kind_detail", "service"]
3873
+ ],
3874
+ "paint": {
3875
+ "line-width": [
3876
+ "interpolate",
3877
+ ["exponential", 1.6],
3878
+ ["zoom"],
3879
+ 13,
3880
+ 0,
3881
+ 18,
3882
+ 8
3883
+ ],
3884
+ "line-color": "#ffffff",
3885
+ "line-opacity": 0.85
3886
+ }
3887
+ },
3888
+ {
3889
+ "id": "roads_minor",
3890
+ "type": "line",
3891
+ "source": "<BMK_BM_SRC>",
3892
+ "source-layer": "roads",
3893
+ "filter": [
3894
+ "all",
3895
+ ["!has", "is_tunnel"],
3896
+ ["!has", "is_bridge"],
3897
+ ["==", "kind", "minor_road"],
3898
+ ["!=", "kind_detail", "service"]
3899
+ ],
3900
+ "layout": {"visibility": "visible"},
3901
+ "paint": {
3902
+ "line-width": [
3903
+ "interpolate",
3904
+ ["exponential", 1.6],
3905
+ ["zoom"],
3906
+ 11,
3907
+ 0,
3908
+ 12.5,
3909
+ 0.5,
3910
+ 15,
3911
+ 2,
3912
+ 18,
3913
+ 11
3914
+ ],
3915
+ "line-color": "#ffffff",
3916
+ "line-opacity": 0.85
3917
+ }
3918
+ },
3919
+ {
3920
+ "id": "roads_major",
3921
+ "type": "line",
3922
+ "source": "<BMK_BM_SRC>",
3923
+ "source-layer": "roads",
3924
+ "filter": [
3925
+ "all",
3926
+ ["!has", "is_tunnel"],
3927
+ ["!has", "is_bridge"],
3928
+ ["in", "kind", "major_road"]
3929
+ ],
3930
+ "layout": {"visibility": "visible"},
3931
+ "paint": {
3932
+ "line-width": [
3933
+ "interpolate",
3934
+ ["exponential", 1.6],
3935
+ ["zoom"],
3936
+ 3,
3937
+ 0,
3938
+ 6,
3939
+ 1.1,
3940
+ 12,
3941
+ 1.6,
3942
+ 15,
3943
+ 5,
3944
+ 18,
3945
+ 15
3946
+ ],
3947
+ "line-opacity": 0.85,
3948
+ "line-color": "#ffffff"
3949
+ }
3950
+ },
3951
+ {
3952
+ "id": "roads_highway",
3953
+ "type": "line",
3954
+ "source": "<BMK_BM_SRC>",
3955
+ "source-layer": "roads",
3956
+ "filter": [
3957
+ "all",
3958
+ ["!has", "is_tunnel"],
3959
+ ["!has", "is_bridge"],
3960
+ ["==", "kind", "highway"],
3961
+ ["!has", "is_link"]
3962
+ ],
3963
+ "layout": {"visibility": "visible"},
3964
+ "paint": {
3965
+ "line-width": [
3966
+ "interpolate",
3967
+ ["exponential", 1.6],
3968
+ ["zoom"],
3969
+ 3,
3970
+ 0,
3971
+ 6,
3972
+ 1.1,
3973
+ 12,
3974
+ 1.6,
3975
+ 15,
3976
+ 5,
3977
+ 18,
3978
+ 15
3979
+ ],
3980
+ "line-color": "#ffffff",
3981
+ "line-opacity": 0.85
3982
+ }
3983
+ },
3984
+ {
3985
+ "id": "roads_rail",
3986
+ "type": "line",
3987
+ "source": "<BMK_BM_SRC>",
3988
+ "source-layer": "roads",
3989
+ "filter": ["==", "kind", "rail"],
3990
+ "layout": {"visibility": "visible"},
3991
+ "paint": {
3992
+ "line-dasharray": [0.3, 0.75],
3993
+ "line-opacity": 0.2,
3994
+ "line-color": "#000",
3995
+ "line-width": [
3996
+ "interpolate",
3997
+ ["exponential", 1.6],
3998
+ ["zoom"],
3999
+ 3,
4000
+ 0,
4001
+ 6,
4002
+ 0.15,
4003
+ 18,
4004
+ 6
4005
+ ]
4006
+ }
4007
+ },
4008
+ {
4009
+ "id": "boundaries_country",
4010
+ "type": "line",
4011
+ "source": "<BMK_BM_SRC>",
4012
+ "source-layer": "boundaries",
4013
+ "minzoom": 0,
4014
+ "filter": ["<=", "kind_detail", 2],
4015
+ "layout": {"visibility": "visible"},
4016
+ "paint": {
4017
+ "line-width": [
4018
+ "interpolate",
4019
+ ["exponential", 1.6],
4020
+ ["zoom"],
4021
+ 0,
4022
+ 1,
4023
+ 3,
4024
+ 1,
4025
+ 5,
4026
+ 1.5,
4027
+ 8,
4028
+ 3,
4029
+ 10,
4030
+ 4,
4031
+ 15,
4032
+ 7
4033
+ ],
4034
+ "line-color": "#000",
4035
+ "line-opacity": 0.4
4036
+ }
4037
+ },
4038
+ {
4039
+ "id": "boundaries",
4040
+ "type": "line",
4041
+ "source": "<BMK_BM_SRC>",
4042
+ "source-layer": "boundaries",
4043
+ "filter": [">", "kind_detail", 2],
4044
+ "layout": {"visibility": "visible"},
4045
+ "paint": {
4046
+ "line-width": 1,
4047
+ "line-dasharray": [
4048
+ "step",
4049
+ ["zoom"],
4050
+ ["literal", [2]],
4051
+ 4,
4052
+ ["literal", [2, 2]]
4053
+ ],
4054
+ "line-color": "#000",
4055
+ "line-opacity": 0.4
4056
+ }
4057
+ },
4058
+ {
4059
+ "id": "roads_bridges_other",
4060
+ "type": "line",
4061
+ "source": "<BMK_BM_SRC>",
4062
+ "source-layer": "roads",
4063
+ "minzoom": 12,
4064
+ "filter": ["all", ["has", "is_bridge"], ["in", "kind", "other", "path"]],
4065
+ "layout": {"visibility": "visible"},
4066
+ "paint": {
4067
+ "line-opacity": 0.85,
4068
+ "line-color": "#fff",
4069
+ "line-dasharray": [2, 1],
4070
+ "line-width": [
4071
+ "interpolate",
4072
+ ["exponential", 1.6],
4073
+ ["zoom"],
4074
+ 14,
4075
+ 0,
4076
+ 20,
4077
+ 7
4078
+ ]
4079
+ }
4080
+ },
4081
+ {
4082
+ "id": "roads_bridges_minor",
4083
+ "type": "line",
4084
+ "source": "<BMK_BM_SRC>",
4085
+ "source-layer": "roads",
4086
+ "minzoom": 12,
4087
+ "filter": ["all", ["has", "is_bridge"], ["==", "kind", "minor_road"]],
4088
+ "paint": {
4089
+ "line-opacity": 0.85,
4090
+ "line-color": "#ffffff",
4091
+ "line-width": [
4092
+ "interpolate",
4093
+ ["exponential", 1.6],
4094
+ ["zoom"],
4095
+ 11,
4096
+ 0,
4097
+ 12.5,
4098
+ 0.5,
4099
+ 15,
4100
+ 2,
4101
+ 18,
4102
+ 11
4103
+ ]
4104
+ }
4105
+ },
4106
+ {
4107
+ "id": "roads_bridges_link",
4108
+ "type": "line",
4109
+ "source": "<BMK_BM_SRC>",
4110
+ "source-layer": "roads",
4111
+ "minzoom": 12,
4112
+ "filter": ["all", ["has", "is_bridge"], ["has", "is_link"]],
4113
+ "paint": {
4114
+ "line-color": "#ffffff",
4115
+ "line-width": [
4116
+ "interpolate",
4117
+ ["exponential", 1.6],
4118
+ ["zoom"],
4119
+ 13,
4120
+ 0,
4121
+ 13.5,
4122
+ 1,
4123
+ 18,
4124
+ 11
4125
+ ],
4126
+ "line-opacity": 0.85
4127
+ }
4128
+ },
4129
+ {
4130
+ "id": "roads_bridges_major",
4131
+ "type": "line",
4132
+ "source": "<BMK_BM_SRC>",
4133
+ "source-layer": "roads",
4134
+ "minzoom": 12,
4135
+ "filter": ["all", ["has", "is_bridge"], ["==", "kind", "major_road"]],
4136
+ "paint": {
4137
+ "line-color": "#ffffff",
4138
+ "line-width": [
4139
+ "interpolate",
4140
+ ["exponential", 1.6],
4141
+ ["zoom"],
4142
+ 6,
4143
+ 0,
4144
+ 12,
4145
+ 1.6,
4146
+ 15,
4147
+ 3,
4148
+ 18,
4149
+ 13
4150
+ ],
4151
+ "line-opacity": 0.85
4152
+ }
4153
+ },
4154
+ {
4155
+ "id": "cycleway",
4156
+ "type": "line",
4157
+ "source": "<BMK_BM_SRC>",
4158
+ "source-layer": "roads",
4159
+ "filter": ["any", ["==", "kind_detail", "cycleway"]],
4160
+ "layout": {"visibility": "visible"},
4161
+ "paint": {
4162
+ "line-width": [
4163
+ "interpolate",
4164
+ ["exponential", 1.6],
4165
+ ["zoom"],
4166
+ 12.5,
4167
+ 1,
4168
+ 15,
4169
+ 2,
4170
+ 18,
4171
+ 4
4172
+ ],
4173
+ "line-color": "#ffffff",
4174
+ "line-dasharray": [3, 1.5],
4175
+ "line-opacity": 0.5
4176
+ }
4177
+ },
4178
+ {
4179
+ "id": "roads_bridges_highway",
4180
+ "type": "line",
4181
+ "source": "<BMK_BM_SRC>",
4182
+ "source-layer": "roads",
4183
+ "filter": [
4184
+ "all",
4185
+ ["has", "is_bridge"],
4186
+ ["==", "kind", "highway"],
4187
+ ["!has", "is_link"]
4188
+ ],
4189
+ "paint": {
4190
+ "line-color": "#ffffff",
4191
+ "line-width": [
4192
+ "interpolate",
4193
+ ["exponential", 1.6],
4194
+ ["zoom"],
4195
+ 3,
4196
+ 0,
4197
+ 6,
4198
+ 1.1,
4199
+ 12,
4200
+ 1.6,
4201
+ 15,
4202
+ 5,
4203
+ 18,
4204
+ 15
4205
+ ],
4206
+ "line-opacity": 0.85
4207
+ }
4208
+ },
4209
+ {
4210
+ "id": "water_waterway_label",
4211
+ "type": "symbol",
4212
+ "source": "<BMK_BM_SRC>",
4213
+ "source-layer": "water",
4214
+ "minzoom": 13,
4215
+ "filter": ["in", "kind", "river", "stream"],
4216
+ "layout": {
4217
+ "symbol-placement": "line",
4218
+ "text-font": ["Noto Sans Italic"],
4219
+ "text-field": "<LANG>",
4220
+ "text-size": 12,
4221
+ "text-letter-spacing": 0.2
4222
+ },
4223
+ "paint": {"text-color": "rgba(0, 0, 0, 0.5)"}
4224
+ },
4225
+ {
4226
+ "id": "roads_labels_minor",
4227
+ "type": "symbol",
4228
+ "source": "<BMK_BM_SRC>",
4229
+ "source-layer": "roads",
4230
+ "minzoom": 15,
4231
+ "filter": ["in", "kind", "minor_road", "other", "path"],
4232
+ "layout": {
4233
+ "symbol-sort-key": ["get", "min_zoom"],
4234
+ "symbol-placement": "line",
4235
+ "text-font": ["Noto Sans Regular"],
4236
+ "text-field": "<LANG>",
4237
+ "text-size": 12,
4238
+ "visibility": "visible"
4239
+ },
4240
+ "paint": {
4241
+ "text-color": "rgba(0, 0, 0, 0.75)",
4242
+ "text-halo-color": "rgba(255, 255, 255, 0.5)",
4243
+ "text-halo-width": 1
4244
+ }
4245
+ },
4246
+ {
4247
+ "id": "water_label_ocean",
4248
+ "type": "symbol",
4249
+ "source": "<BMK_BM_SRC>",
4250
+ "source-layer": "water",
4251
+ "filter": ["in", "kind", "sea", "ocean", "bay", "strait", "fjord"],
4252
+ "layout": {
4253
+ "text-font": ["Noto Sans Italic"],
4254
+ "text-field": "<LANG>",
4255
+ "text-size": ["interpolate", ["linear"], ["zoom"], 1, 12, 10, 12],
4256
+ "text-letter-spacing": 0.1,
4257
+ "text-max-width": 9,
4258
+ "text-transform": "uppercase"
4259
+ },
4260
+ "paint": {
4261
+ "text-color": "rgba(0, 0, 0, 0.5)"
4262
+ }
4263
+ },
4264
+ {
4265
+ "id": "earth_label_islands",
4266
+ "type": "symbol",
4267
+ "source": "<BMK_BM_SRC>",
4268
+ "source-layer": "earth",
4269
+ "filter": ["in", "kind", "island"],
4270
+ "layout": {
4271
+ "text-font": ["Noto Sans Italic"],
4272
+ "text-field": "<LANG>",
4273
+ "text-size": 10,
4274
+ "text-letter-spacing": 0.1,
4275
+ "text-max-width": 8
4276
+ },
4277
+ "paint": {
4278
+ "text-color": "rgba(0, 0, 0, 0.85)",
4279
+ "text-halo-color": "rgba(255, 255, 255, 0.85)",
4280
+ "text-halo-width": 1
4281
+ }
4282
+ },
4283
+ {
4284
+ "id": "water_label_lakes",
4285
+ "type": "symbol",
4286
+ "source": "<BMK_BM_SRC>",
4287
+ "source-layer": "water",
4288
+ "filter": ["in", "kind", "lake", "water"],
4289
+ "layout": {
4290
+ "text-font": ["Noto Sans Italic"],
4291
+ "text-field": "<LANG>",
4292
+ "text-size": [
4293
+ "interpolate",
4294
+ ["linear"],
4295
+ ["zoom"],
4296
+ 3,
4297
+ 10,
4298
+ 6,
4299
+ 12,
4300
+ 10,
4301
+ 12
4302
+ ],
4303
+ "text-letter-spacing": 0.1,
4304
+ "text-max-width": 9
4305
+ },
4306
+ "paint": {"text-color": "rgba(0, 0, 0, 0.5)"}
4307
+ },
4308
+ {
4309
+ "id": "roads_labels_major",
4310
+ "type": "symbol",
4311
+ "source": "<BMK_BM_SRC>",
4312
+ "source-layer": "roads",
4313
+ "minzoom": 11,
4314
+ "filter": ["in", "kind", "highway", "major_road"],
4315
+ "layout": {
4316
+ "symbol-sort-key": ["get", "min_zoom"],
4317
+ "symbol-placement": "line",
4318
+ "text-font": ["Noto Sans Regular"],
4319
+ "text-field": "<LANG>",
4320
+ "text-size": 12,
4321
+ "visibility": "visible"
4322
+ },
4323
+ "paint": {
4324
+ "text-color": "rgba(0, 0, 0, 0.75)",
4325
+ "text-halo-color": "rgba(255, 255, 255, 0.5)",
4326
+ "text-halo-width": 1
4327
+ }
4328
+ },
4329
+ {
4330
+ "id": "pois",
4331
+ "type": "symbol",
4332
+ "source": "<BMK_BM_SRC>",
4333
+ "source-layer": "pois",
4334
+ "filter": [
4335
+ "all",
4336
+ [
4337
+ "in",
4338
+ ["get", "kind"],
4339
+ [
4340
+ "literal",
4341
+ [
4342
+ "beach",
4343
+ "forest",
4344
+ "marina",
4345
+ "park",
4346
+ "peak",
4347
+ "zoo",
4348
+ "garden",
4349
+ "aerodrome",
4350
+ "station",
4351
+ "ferry_terminal",
4352
+ "stadium",
4353
+ "university",
4354
+ "library",
4355
+ "school",
4356
+ "animal",
4357
+ "toilet",
4358
+ "drinking_water",
4359
+ "viewpoint",
4360
+ "attraction",
4361
+ "camp_site",
4362
+ "college",
4363
+ "fishing",
4364
+ "golf_course",
4365
+ "hospital",
4366
+ "information",
4367
+ "landmark",
4368
+ "military",
4369
+ "national_park",
4370
+ "nature_reserve",
4371
+ "picnic_site",
4372
+ "picnic_table",
4373
+ "playground",
4374
+ "railway",
4375
+ "townhall",
4376
+ "zoo"
4377
+ ]
4378
+ ]
4379
+ ],
4380
+ [">=", ["zoom"], ["+", ["get", "min_zoom"], -2]]
4381
+ ],
4382
+ "layout": {
4383
+ "icon-image": [
4384
+ "match",
4385
+ ["get", "kind"],
4386
+ "park",
4387
+ "garden",
4388
+ ["get", "kind"]
4389
+ ],
4390
+ "text-font": ["Noto Sans Regular"],
4391
+ "text-justify": "auto",
4392
+ "text-field": "<LANG>",
4393
+ "text-size": ["interpolate", ["linear"], ["zoom"], 17, 11, 19, 14],
4394
+ "text-max-width": 8,
4395
+ "text-offset": [1.5, 0],
4396
+ "text-variable-anchor": ["left", "right"],
4397
+ "visibility": "visible"
4398
+ },
4399
+ "paint": {
4400
+ "text-color": "rgba(0, 0, 0, 0.75)",
4401
+ "text-halo-color": "rgba(255, 255, 255, 0.5)",
4402
+ "text-halo-width": 1.5
4403
+ }
4404
+ },
4405
+ {
4406
+ "id": "places_subplace",
4407
+ "type": "symbol",
4408
+ "source": "<BMK_BM_SRC>",
4409
+ "source-layer": "places",
4410
+ "filter": ["==", "kind", "neighbourhood"],
4411
+ "layout": {
4412
+ "symbol-sort-key": [
4413
+ "case",
4414
+ ["has", "sort_key"],
4415
+ ["get", "sort_key"],
4416
+ ["get", "min_zoom"]
4417
+ ],
4418
+ "text-field": "<LANG>",
4419
+ "text-font": ["Noto Sans Regular"],
4420
+ "text-max-width": 7,
4421
+ "text-letter-spacing": 0.1,
4422
+ "text-padding": [
4423
+ "interpolate",
4424
+ ["linear"],
4425
+ ["zoom"],
4426
+ 5,
4427
+ 2,
4428
+ 8,
4429
+ 4,
4430
+ 12,
4431
+ 18,
4432
+ 15,
4433
+ 20
4434
+ ],
4435
+ "text-size": [
4436
+ "interpolate",
4437
+ ["exponential", 1.2],
4438
+ ["zoom"],
4439
+ 11,
4440
+ 8,
4441
+ 14,
4442
+ 14,
4443
+ 18,
4444
+ 24
4445
+ ],
4446
+ "text-transform": "uppercase"
4447
+ },
4448
+ "paint": {
4449
+ "text-color": "rgba(0, 0, 0, 0.75)",
4450
+ "text-halo-color": "rgba(255, 255, 255, 0.5)",
4451
+ "text-halo-width": 1
4452
+ }
4453
+ },
4454
+ {
4455
+ "id": "places_region",
4456
+ "type": "symbol",
4457
+ "source": "<BMK_BM_SRC>",
4458
+ "source-layer": "places",
4459
+ "filter": ["==", "kind", "region"],
4460
+ "layout": {
4461
+ "symbol-sort-key": ["get", "sort_key"],
4462
+ "text-field": "<LANG>",
4463
+ "text-font": ["Noto Sans Regular"],
4464
+ "text-size": ["interpolate", ["linear"], ["zoom"], 3, 11, 7, 16],
4465
+ "text-radial-offset": 0.2,
4466
+ "text-anchor": "center",
4467
+ "text-transform": "uppercase"
4468
+ },
4469
+ "paint": {
4470
+ "text-halo-color": "rgba(0, 0, 0, 0.75)",
4471
+ "text-halo-width": 1,
4472
+ "text-color": "#ffffff"
4473
+ }
4474
+ },
4475
+ {
4476
+ "id": "places_locality_circle",
4477
+ "type": "circle",
4478
+ "source": "<BMK_BM_SRC>",
4479
+ "source-layer": "places",
4480
+ "filter": ["==", "kind", "locality"],
4481
+ "maxzoom": 8,
4482
+ "paint": {
4483
+ "circle-radius": {
4484
+ "stops": [[4, 2.5], [8, 3.5]]
4485
+ },
4486
+ "circle-color": "rgba(255, 255, 255, 0.55)",
4487
+ "circle-stroke-width": 1.75,
4488
+ "circle-stroke-color": "rgba(0, 0, 0, 0.45)"
4489
+ }
4490
+ },
4491
+ {
4492
+ "id": "places_locality",
4493
+ "type": "symbol",
4494
+ "source": "<BMK_BM_SRC>",
4495
+ "source-layer": "places",
4496
+ "filter": ["==", "kind", "locality"],
4497
+ "layout": {
4498
+ "icon-image": ["step", ["zoom"], "townspot", 8, ""],
4499
+ "icon-size": 0.7,
4500
+ "text-field": "<LANG>",
4501
+ "text-font": [
4502
+ "case",
4503
+ ["<=", ["get", "min_zoom"], 5],
4504
+ ["literal", ["Noto Sans Medium"]],
4505
+ ["literal", ["Noto Sans Regular"]]
4506
+ ],
4507
+ "symbol-sort-key": [
4508
+ "case",
4509
+ ["has", "sort_key"],
4510
+ ["get", "sort_key"],
4511
+ ["get", "min_zoom"]
4512
+ ],
4513
+ "text-padding": [
4514
+ "interpolate",
4515
+ ["linear"],
4516
+ ["zoom"],
4517
+ 5,
4518
+ 3,
4519
+ 8,
4520
+ 7,
4521
+ 12,
4522
+ 11
4523
+ ],
4524
+ "text-size": [
4525
+ "interpolate",
4526
+ ["linear"],
4527
+ ["zoom"],
4528
+ 2,
4529
+ [
4530
+ "case",
4531
+ ["<", ["get", "population_rank"], 13],
4532
+ 10,
4533
+ [">=", ["get", "population_rank"], 13],
4534
+ 15,
4535
+ 0
4536
+ ],
4537
+ 4,
4538
+ [
4539
+ "case",
4540
+ ["<", ["get", "population_rank"], 13],
4541
+ 12,
4542
+ [">=", ["get", "population_rank"], 13],
4543
+ 17,
4544
+ 0
4545
+ ],
4546
+ 6,
4547
+ [
4548
+ "case",
4549
+ ["<", ["get", "population_rank"], 12],
4550
+ 14,
4551
+ [">=", ["get", "population_rank"], 12],
4552
+ 17,
4553
+ 0
4554
+ ],
4555
+ 8,
4556
+ [
4557
+ "case",
4558
+ ["<", ["get", "population_rank"], 11],
4559
+ 13,
4560
+ [">=", ["get", "population_rank"], 11],
4561
+ 20,
4562
+ 0
4563
+ ],
4564
+ 10,
4565
+ [
4566
+ "case",
4567
+ ["<", ["get", "population_rank"], 9],
4568
+ 14,
4569
+ [">=", ["get", "population_rank"], 9],
4570
+ 20,
4571
+ 0
4572
+ ],
4573
+ 15,
4574
+ [
4575
+ "case",
4576
+ ["<", ["get", "population_rank"], 8],
4577
+ 14,
4578
+ [">=", ["get", "population_rank"], 8],
4579
+ 22,
4580
+ 0
4581
+ ]
4582
+ ],
4583
+ "icon-padding": [
4584
+ "interpolate",
4585
+ ["linear"],
4586
+ ["zoom"],
4587
+ 0,
4588
+ 0,
4589
+ 8,
4590
+ 6,
4591
+ 10,
4592
+ 8,
4593
+ 12,
4594
+ 6,
4595
+ 22,
4596
+ 2
4597
+ ],
4598
+ "text-justify": "auto",
4599
+ "text-variable-anchor": [
4600
+ "step",
4601
+ ["zoom"],
4602
+ ["literal", ["bottom", "left", "right", "top"]],
4603
+ 8,
4604
+ ["literal", ["center"]]
4605
+ ],
4606
+ "text-radial-offset": 0.3,
4607
+ "visibility": "visible"
4608
+ },
4609
+ "paint": {
4610
+ "text-color": "rgba(0, 0, 0, 0.85)",
4611
+ "text-halo-color": "rgba(255, 255, 255, 0.85)",
4612
+ "text-halo-width": 1
4613
+ }
4614
+ },
4615
+ {
4616
+ "id": "places_country",
4617
+ "type": "symbol",
4618
+ "source": "<BMK_BM_SRC>",
4619
+ "source-layer": "places",
4620
+ "filter": ["==", "kind", "country"],
4621
+ "layout": {
4622
+ "symbol-sort-key": [
4623
+ "case",
4624
+ ["has", "sort_key"],
4625
+ ["get", "sort_key"],
4626
+ ["get", "min_zoom"]
4627
+ ],
4628
+ "text-field": "<LANG_COUNTRY>",
4629
+ "text-font": ["Noto Sans Medium"],
4630
+ "text-size": [
4631
+ "interpolate",
4632
+ ["linear"],
4633
+ ["zoom"],
4634
+ 2,
4635
+ [
4636
+ "case",
4637
+ ["<", ["get", "population_rank"], 10],
4638
+ 12,
4639
+ [">=", ["get", "population_rank"], 10],
4640
+ 15,
4641
+ 0
4642
+ ],
4643
+ 6,
4644
+ [
4645
+ "case",
4646
+ ["<", ["get", "population_rank"], 9],
4647
+ 11,
4648
+ [">=", ["get", "population_rank"], 8],
4649
+ 18,
4650
+ 0
4651
+ ],
4652
+ 8,
4653
+ [
4654
+ "case",
4655
+ ["<", ["get", "population_rank"], 7],
4656
+ 12,
4657
+ [">=", ["get", "population_rank"], 7],
4658
+ 20,
4659
+ 0
4660
+ ]
4661
+ ],
4662
+ "icon-padding": [
4663
+ "interpolate",
4664
+ ["linear"],
4665
+ ["zoom"],
4666
+ 0,
4667
+ 2,
4668
+ 14,
4669
+ 2,
4670
+ 16,
4671
+ 20,
4672
+ 17,
4673
+ 2,
4674
+ 22,
4675
+ 2
4676
+ ],
4677
+ "text-transform": "none"
4678
+ },
4679
+ "paint": {
4680
+ "text-color": "rgba(0, 0, 0, 0.9)",
4681
+ "text-halo-color": "rgba(255, 255, 255, 0.7)",
4682
+ "text-halo-width": 1.5
4683
+ }
4684
+ }
4685
+ ]`, q = `[
4686
+ {
4687
+ "id": "background",
4688
+ "type": "background",
4689
+ "layout": {"visibility": "visible"},
4690
+ "paint": {"background-color": "#888"}
4691
+ },
4692
+ {
4693
+ "id": "earth",
4694
+ "type": "fill",
4695
+ "source": "<BMK_BM_SRC>",
4696
+ "source-layer": "earth",
4697
+ "filter": ["==", "$type", "Polygon"],
4698
+ "paint": {
4699
+ "fill-color": "#fff",
4700
+ "fill-opacity": 0.1
4701
+ }
4702
+ },
4703
+ {
4704
+ "id": "water",
4705
+ "type": "fill",
4706
+ "source": "<BMK_BM_SRC>",
4707
+ "source-layer": "water",
4708
+ "filter": ["==", "$type", "Polygon"],
4709
+ "paint": {
4710
+ "fill-color": "#000",
4711
+ "fill-opacity": 0.1
4712
+ }
4713
+ },
4714
+ {
4715
+ "id": "hillshader",
4716
+ "type": "hillshade",
4717
+ "source": "__bmk_tr_src",
4718
+ "layout": {"visibility": "visible"},
4719
+ "paint": {
4720
+ "hillshade-illumination-anchor": "viewport",
4721
+ "hillshade-exaggeration": [
4722
+ "interpolate",
4723
+ ["exponential", 1.6],
4724
+ ["zoom"],
4725
+ 0,
4726
+ 0.05,
4727
+ 4,
4728
+ 0.05,
4729
+ 7,
4730
+ 0.15,
4731
+ 10,
4732
+ 0.2,
4733
+ 15,
4734
+ 0.2,
4735
+ 17,
4736
+ 0.1
4737
+ ],
4738
+ "hillshade-shadow-color": "#000000",
4739
+ "hillshade-highlight-color": "#ffffff",
4740
+ "hillshade-accent-color": "#ffffff",
4741
+ "hillshade-illumination-direction": ["literal", 310]
4742
+ }
4743
+ },
4744
+ {
4745
+ "id": "earth_line",
4746
+ "type": "line",
4747
+ "source": "<BMK_BM_SRC>",
4748
+ "source-layer": "earth",
4749
+ "filter": ["==", "$type", "Polygon"],
4750
+ "paint": {
4751
+ "line-color": "#0f0",
4752
+ "line-width": {
4753
+ "base": 1.6,
4754
+ "stops": [
4755
+ [1, 1.25],
4756
+ [6, 2]
4757
+ ]
4758
+ }
4759
+ }
4760
+ },
4761
+ {
4762
+ "id": "water_line",
4763
+ "type": "line",
4764
+ "source": "<BMK_BM_SRC>",
4765
+ "source-layer": "water",
4766
+ "filter": ["==", "$type", "Polygon"],
4767
+
4768
+ "layout": {"visibility": "visible"},
4769
+ "paint": {
4770
+ "line-color": "#0f0",
4771
+ "line-width": {
4772
+ "base": 1.6,
4773
+ "stops": [
4774
+ [1, 0.5],
4775
+ [6, 1]
4776
+ ]
4777
+ }
4778
+ }
4779
+ },
4780
+
4781
+ {
4782
+ "id": "boundaries_country",
4783
+ "type": "line",
4784
+ "source": "<BMK_BM_SRC>",
4785
+ "source-layer": "boundaries",
4786
+ "minzoom": 0,
4787
+ "filter": ["<=", "kind_detail", 2],
4788
+ "layout": {"visibility": "visible"},
4789
+ "paint": {
4790
+ "line-width": {
4791
+ "base": 1.6,
4792
+ "stops": [
4793
+ [1, 1.25],
4794
+ [6, 2]
4795
+ ]
4796
+ },
4797
+ "line-color": "#0f0"
4798
+ }
4799
+ },
4800
+ {
4801
+ "id": "boundaries",
4802
+ "type": "line",
4803
+ "source": "<BMK_BM_SRC>",
4804
+ "source-layer": "boundaries",
4805
+ "filter": [">", "kind_detail", 2],
4806
+ "layout": {"visibility": "visible"},
4807
+ "paint": {
4808
+ "line-width": {
4809
+ "base": 1.6,
4810
+ "stops": [
4811
+ [1, 0.9],
4812
+ [6, 1.5]
4813
+ ]
4814
+ },
4815
+ "line-dasharray": [
4816
+ "step",
4817
+ ["zoom"],
4818
+ ["literal", [2]],
4819
+ 4,
4820
+ ["literal", [2, 2]]
4821
+ ],
4822
+ "line-color": "#0f0"
4823
+ }
4824
+ },
4825
+
4826
+ {
4827
+ "id": "water_label_ocean",
4828
+ "type": "symbol",
4829
+ "source": "<BMK_BM_SRC>",
4830
+ "source-layer": "water",
4831
+ "filter": ["in", "kind", "sea", "ocean", "bay", "strait", "fjord"],
4832
+ "layout": {
4833
+ "text-font": ["Noto Sans Italic"],
4834
+ "text-field": "<LANG>",
4835
+ "text-size": ["interpolate", ["linear"], ["zoom"], 1, 12, 10, 12],
4836
+ "text-letter-spacing": 0.1,
4837
+ "text-max-width": 9,
4838
+ "text-transform": "uppercase"
4839
+ },
4840
+ "paint": {
4841
+ "text-color": "rgba(0, 255, 0, 0.5)"
4842
+ }
4843
+ },
4844
+ {
4845
+ "id": "earth_label_islands",
4846
+ "type": "symbol",
4847
+ "source": "<BMK_BM_SRC>",
4848
+ "source-layer": "earth",
4849
+ "filter": ["in", "kind", "island"],
4850
+ "layout": {
4851
+ "text-font": ["Noto Sans Italic"],
4852
+ "text-field": "<LANG>",
4853
+ "text-size": 11,
4854
+ "text-letter-spacing": 0.1,
4855
+ "text-max-width": 8
4856
+ },
4857
+ "paint": {
4858
+ "text-color": "rgba(0, 0, 0, 0.85)",
4859
+ "text-halo-color": "rgba(0, 255, 0, 0.85)"
4860
+ }
4861
+ },
4862
+ {
4863
+ "id": "water_label_lakes",
4864
+ "type": "symbol",
4865
+ "source": "<BMK_BM_SRC>",
4866
+ "source-layer": "water",
4867
+ "filter": ["in", "kind", "lake", "water"],
4868
+ "layout": {
4869
+ "text-font": ["Noto Sans Italic"],
4870
+ "text-field": "<LANG>",
4871
+ "text-size": [
4872
+ "interpolate",
4873
+ ["linear"],
4874
+ ["zoom"],
4875
+ 3,
4876
+ 10,
4877
+ 6,
4878
+ 12,
4879
+ 10,
4880
+ 12
4881
+ ],
4882
+ "text-letter-spacing": 0.1,
4883
+ "text-max-width": 9
4884
+ },
4885
+ "paint": {"text-color": "rgba(0, 255, 0, 0.6)"}
4886
+ },
4887
+ {
4888
+ "id": "pois",
4889
+ "type": "symbol",
4890
+ "source": "<BMK_BM_SRC>",
4891
+ "source-layer": "pois",
4892
+ "filter": [
4893
+ "all",
4894
+ [
4895
+ "in",
4896
+ ["get", "kind"],
4897
+ [
4898
+ "literal",
4899
+ [
4900
+ "beach",
4901
+ "forest",
4902
+ "marina",
4903
+ "park",
4904
+ "peak",
4905
+ "zoo",
4906
+ "garden",
4907
+ "aerodrome",
4908
+ "station",
4909
+ "ferry_terminal",
4910
+ "stadium",
4911
+ "university",
4912
+ "library",
4913
+ "school",
4914
+ "animal",
4915
+ "toilet",
4916
+ "drinking_water",
4917
+ "viewpoint",
4918
+ "attraction",
4919
+ "camp_site",
4920
+ "college",
4921
+ "fishing",
4922
+ "golf_course",
4923
+ "hospital",
4924
+ "information",
4925
+ "landmark",
4926
+ "military",
4927
+ "national_park",
4928
+ "nature_reserve",
4929
+ "picnic_site",
4930
+ "picnic_table",
4931
+ "playground",
4932
+ "railway",
4933
+ "townhall",
4934
+ "zoo"
4935
+ ]
4936
+ ]
4937
+ ],
4938
+ [">=", ["zoom"], ["+", ["get", "min_zoom"], -2]]
4939
+ ],
4940
+ "layout": {
4941
+ "icon-image": [
4942
+ "match",
4943
+ ["get", "kind"],
4944
+ "park",
4945
+ "garden",
4946
+ ["get", "kind"]
4947
+ ],
4948
+ "text-font": ["Noto Sans Regular"],
4949
+ "text-justify": "auto",
4950
+ "text-field": "<LANG>",
4951
+ "text-size": ["interpolate", ["linear"], ["zoom"], 17, 11, 19, 14],
4952
+ "text-max-width": 8,
4953
+ "text-offset": [1.5, 0],
4954
+ "text-variable-anchor": ["left", "right"],
4955
+ "visibility": "visible"
4956
+ },
4957
+ "paint": {
4958
+ "text-color": "rgba(0, 0, 0, 0.75)",
4959
+ "text-halo-color": "rgba(0, 255, 0, 0.65)"
4960
+ }
4961
+ },
4962
+
4963
+ {
4964
+ "id": "places_region",
4965
+ "minzoom": 3.5,
4966
+ "type": "symbol",
4967
+ "source": "<BMK_BM_SRC>",
4968
+ "source-layer": "places",
4969
+ "filter": ["==", "kind", "region"],
4970
+ "layout": {
4971
+ "symbol-sort-key": ["get", "sort_key"],
4972
+ "text-field": "<LANG>",
4973
+ "text-font": ["Noto Sans Regular"],
4974
+ "text-size": ["interpolate", ["linear"], ["zoom"], 3, 13, 5, 16, 7, 20],
4975
+ "text-radial-offset": 0.2,
4976
+ "text-anchor": "center",
4977
+ "text-transform": "uppercase"
4978
+ },
4979
+ "paint": {
4980
+ "text-color": "rgba(0, 0, 0, 0.75)",
4981
+ "text-halo-color": "rgba(0, 255, 0, 0.85)"
4982
+ }
4983
+ },
4984
+ {
4985
+ "id": "places_locality_circle",
4986
+ "type": "circle",
4987
+ "source": "<BMK_BM_SRC>",
4988
+ "source-layer": "places",
4989
+ "filter": ["==", "kind", "locality"],
4990
+ "minzoom": 4,
4991
+ "maxzoom": 8,
4992
+ "paint": {
4993
+ "circle-radius": {
4994
+ "stops": [[4, 2.5], [8, 3.5]]
4995
+ },
4996
+ "circle-color": "rgba(0, 0, 0, 0.6)"
4997
+ }
4998
+ },
4999
+
5000
+ {
5001
+ "id": "places_locality",
5002
+ "minzoom": 4,
5003
+ "type": "symbol",
5004
+ "source": "<BMK_BM_SRC>",
5005
+ "source-layer": "places",
5006
+ "filter": ["==", "kind", "locality"],
5007
+ "layout": {
5008
+ "icon-image": ["step", ["zoom"], "townspot", 8, ""],
5009
+ "icon-size": 0.7,
5010
+ "text-field": "<LANG>",
5011
+ "text-font": [
5012
+ "case",
5013
+ ["<=", ["get", "min_zoom"], 5],
5014
+ ["literal", ["Noto Sans Medium"]],
5015
+ ["literal", ["Noto Sans Regular"]]
5016
+ ],
5017
+ "symbol-sort-key": [
5018
+ "case",
5019
+ ["has", "sort_key"],
5020
+ ["get", "sort_key"],
5021
+ ["get", "min_zoom"]
5022
+ ],
5023
+ "text-padding": [
5024
+ "interpolate",
5025
+ ["linear"],
5026
+ ["zoom"],
5027
+ 5,
5028
+ 3,
5029
+ 8,
5030
+ 7,
5031
+ 12,
5032
+ 11
5033
+ ],
5034
+ "text-size": [
5035
+ "interpolate",
5036
+ ["linear"],
5037
+ ["zoom"],
5038
+ 2,
5039
+ [
5040
+ "case",
5041
+ ["<", ["get", "population_rank"], 13],
5042
+ 10,
5043
+ [">=", ["get", "population_rank"], 13],
5044
+ 15,
5045
+ 0
5046
+ ],
5047
+ 4,
5048
+ [
5049
+ "case",
5050
+ ["<", ["get", "population_rank"], 13],
5051
+ 12,
5052
+ [">=", ["get", "population_rank"], 13],
5053
+ 17,
5054
+ 0
5055
+ ],
5056
+ 6,
5057
+ [
5058
+ "case",
5059
+ ["<", ["get", "population_rank"], 12],
5060
+ 14,
5061
+ [">=", ["get", "population_rank"], 12],
5062
+ 17,
5063
+ 0
5064
+ ],
5065
+ 8,
5066
+ [
5067
+ "case",
5068
+ ["<", ["get", "population_rank"], 11],
5069
+ 13,
5070
+ [">=", ["get", "population_rank"], 11],
5071
+ 20,
5072
+ 0
5073
+ ],
5074
+ 10,
5075
+ [
5076
+ "case",
5077
+ ["<", ["get", "population_rank"], 9],
5078
+ 14,
5079
+ [">=", ["get", "population_rank"], 9],
5080
+ 20,
5081
+ 0
5082
+ ],
5083
+ 15,
5084
+ [
5085
+ "case",
5086
+ ["<", ["get", "population_rank"], 8],
5087
+ 14,
5088
+ [">=", ["get", "population_rank"], 8],
5089
+ 22,
5090
+ 0
5091
+ ]
5092
+ ],
5093
+ "text-justify": "auto",
5094
+ "text-variable-anchor": [
5095
+ "step",
5096
+ ["zoom"],
5097
+ ["literal", ["bottom", "left", "right", "top"]],
5098
+ 8,
5099
+ ["literal", ["center"]]
5100
+ ],
5101
+ "text-radial-offset": 0.3,
5102
+ "visibility": "visible"
5103
+ },
5104
+ "paint": {
5105
+ "text-color": "rgba(0, 0, 0, 0.7)"
5106
+ }
5107
+ },
5108
+ {
5109
+ "id": "places_country",
5110
+ "type": "symbol",
5111
+ "source": "<BMK_BM_SRC>",
5112
+ "source-layer": "places",
5113
+ "filter": ["==", "kind", "country"],
5114
+ "layout": {
5115
+ "symbol-sort-key": [
5116
+ "case",
5117
+ ["has", "sort_key"],
5118
+ ["get", "sort_key"],
5119
+ ["get", "min_zoom"]
5120
+ ],
5121
+ "text-field": "<LANG_COUNTRY>",
5122
+ "text-font": ["Noto Sans Medium"],
5123
+ "text-size": [
5124
+ "interpolate",
5125
+ ["linear"],
5126
+ ["zoom"],
5127
+ 2,
5128
+ [
5129
+ "case",
5130
+ ["<", ["get", "population_rank"], 10],
5131
+ 12,
5132
+ [">=", ["get", "population_rank"], 10],
5133
+ 14,
5134
+ 0
5135
+ ],
5136
+ 6,
5137
+ [
5138
+ "case",
5139
+ ["<", ["get", "population_rank"], 9],
5140
+ 16,
5141
+ [">=", ["get", "population_rank"], 8],
5142
+ 22,
5143
+ 0
5144
+ ],
5145
+ 8,
5146
+ [
5147
+ "case",
5148
+ ["<", ["get", "population_rank"], 7],
5149
+ 17,
5150
+ [">=", ["get", "population_rank"], 7],
5151
+ 28,
5152
+ 0
5153
+ ]
5154
+ ]
5155
+ },
5156
+ "paint": {
5157
+ "text-color": "#000a",
5158
+ "text-halo-color": "rgba(0, 255, 0, 0.8)"
5159
+ }
5160
+ }
5161
+ ]`, H = `[
5162
+ {
5163
+ "id": "background",
5164
+ "type": "background",
5165
+ "layout": {"visibility": "visible"},
5166
+ "paint": {"background-color": "#f0f0f0"}
5167
+ },
5168
+ {
5169
+ "id": "water",
5170
+ "type": "fill",
5171
+ "source": "<BMK_BM_SRC>",
5172
+ "source-layer": "water",
5173
+ "filter": ["==", "$type", "Polygon"],
5174
+ "layout": {"visibility": "visible"},
5175
+ "paint": {"fill-color": "#202226"}
5176
+ },
5177
+ {
5178
+ "id": "landuse_pedestrian",
5179
+ "type": "fill",
5180
+ "source": "<BMK_BM_SRC>",
5181
+ "source-layer": "landuse",
5182
+ "filter": ["in", "kind", "pedestrian", "dam"],
5183
+ "layout": {"visibility": "visible"},
5184
+ "paint": {"fill-color": "#f0f0f0"}
5185
+ },
5186
+ {
5187
+ "id": "parks",
5188
+ "type": "fill",
5189
+ "source": "<BMK_BM_SRC>",
5190
+ "source-layer": "landuse",
5191
+ "minzoom": 7,
5192
+ "filter": ["all", ["==", "kind", "park"]],
5193
+ "layout": {"visibility": "visible"},
5194
+ "paint": {"fill-opacity": 0.15, "fill-color": "#000"}
5195
+ },
5196
+ {
5197
+ "id": "military",
5198
+ "type": "fill",
5199
+ "source": "<BMK_BM_SRC>",
5200
+ "source-layer": "landuse",
5201
+ "minzoom": 6,
5202
+ "filter": ["all", ["==", "kind", "military"]],
5203
+ "layout": {"visibility": "visible"},
5204
+ "paint": {
5205
+ "fill-opacity": {"stops": [[6, 0], [7, 0.15]], "base": 1.6},
5206
+ "fill-color": "#fff"
5207
+ }
5208
+ },
5209
+ {
5210
+ "id": "military_contour",
5211
+ "type": "line",
5212
+ "source": "<BMK_BM_SRC>",
5213
+ "source-layer": "landuse",
5214
+ "minzoom": 6,
5215
+ "filter": ["all", ["==", "kind", "military"]],
5216
+ "paint": {
5217
+ "line-dasharray": [2, 2],
5218
+ "line-opacity": {"stops": [[6, 0.25], [10, 0.5]]},
5219
+ "line-width": {"stops": [[6, 1], [10, 2]], "base": 1.6}
5220
+ }
5221
+ },
5222
+ {
5223
+ "id": "landuse_runway",
5224
+ "type": "fill",
5225
+ "source": "<BMK_BM_SRC>",
5226
+ "source-layer": "landuse",
5227
+ "filter": ["any", ["in", "kind", "runway", "taxiway"]],
5228
+ "layout": {"visibility": "visible"},
5229
+ "paint": {"fill-color": "#ffffff", "fill-opacity": 0.7}
5230
+ },
5231
+ {
5232
+ "id": "landuse_wetland",
5233
+ "type": "fill",
5234
+ "source": "<BMK_BM_SRC>",
5235
+ "source-layer": "landuse",
5236
+ "filter": ["all", ["==", "kind", "wetland"]],
5237
+ "layout": {"visibility": "visible"},
5238
+ "paint": {"fill-opacity": 0.04, "fill-color": "#000000"}
5239
+ },
5240
+ {
5241
+ "id": "hillshader",
5242
+ "type": "hillshade",
5243
+ "source": "__bmk_tr_src",
5244
+ "layout": {"visibility": "visible"},
5245
+ "paint": {
5246
+ "hillshade-illumination-anchor": "viewport",
5247
+ "hillshade-exaggeration": [
5248
+ "interpolate",
5249
+ ["exponential", 1.6],
5250
+ ["zoom"],
5251
+ 0,
5252
+ 0.05,
5253
+ 4,
5254
+ 0.1,
5255
+ 7,
5256
+ 0.15,
5257
+ 10,
5258
+ 0.2,
5259
+ 15,
5260
+ 0.2,
5261
+ 17,
5262
+ 0.1
5263
+ ],
5264
+ "hillshade-shadow-color": "#000000",
5265
+ "hillshade-highlight-color": "#ffffff",
5266
+ "hillshade-accent-color": "#ffffff",
5267
+ "hillshade-illumination-direction": ["literal", 310]
5268
+ }
5269
+ },
5270
+ {
5271
+ "id": "roads_runway",
5272
+ "type": "line",
5273
+ "source": "<BMK_BM_SRC>",
5274
+ "source-layer": "roads",
5275
+ "filter": ["==", "kind_detail", "runway"],
5276
+ "layout": {"visibility": "visible"},
5277
+ "paint": {
5278
+ "line-color": "#ffffff",
5279
+ "line-width": [
5280
+ "interpolate",
5281
+ ["exponential", 1.6],
5282
+ ["zoom"],
5283
+ 10,
5284
+ 0,
5285
+ 12,
5286
+ 4,
5287
+ 18,
5288
+ 30
5289
+ ],
5290
+ "line-opacity": 0.7
5291
+ }
5292
+ },
5293
+ {
5294
+ "id": "roads_taxiway",
5295
+ "type": "line",
5296
+ "source": "<BMK_BM_SRC>",
5297
+ "source-layer": "roads",
5298
+ "minzoom": 13,
5299
+ "filter": ["==", "kind_detail", "taxiway"],
5300
+ "layout": {"visibility": "visible"},
5301
+ "paint": {
5302
+ "line-color": "#e9e9ed",
5303
+ "line-width": [
5304
+ "interpolate",
5305
+ ["exponential", 1.6],
5306
+ ["zoom"],
5307
+ 13,
5308
+ 0,
5309
+ 13.5,
5310
+ 1,
5311
+ 15,
5312
+ 6
5313
+ ]
5314
+ }
5315
+ },
5316
+ {
5317
+ "id": "water_stream",
5318
+ "type": "line",
5319
+ "source": "<BMK_BM_SRC>",
5320
+ "source-layer": "water",
5321
+ "minzoom": 14,
5322
+ "filter": ["in", "kind", "stream"],
5323
+ "layout": {"visibility": "visible"},
5324
+ "paint": {
5325
+ "line-width": 0.5,
5326
+ "line-color": "#202226"
5327
+ }
5328
+ },
5329
+ {
5330
+ "id": "roads_tunnels_minor",
5331
+ "type": "line",
5332
+ "source": "<BMK_BM_SRC>",
5333
+ "source-layer": "roads",
5334
+ "filter": ["all", ["has", "is_tunnel"], ["==", "kind", "minor_road"]],
5335
+ "paint": {
5336
+ "line-color": "#d5d5d5",
5337
+ "line-width": [
5338
+ "interpolate",
5339
+ ["exponential", 1.6],
5340
+ ["zoom"],
5341
+ 11,
5342
+ 0,
5343
+ 12.5,
5344
+ 0.5,
5345
+ 15,
5346
+ 2,
5347
+ 18,
5348
+ 11
5349
+ ]
5350
+ }
5351
+ },
5352
+ {
5353
+ "id": "roads_tunnels_link",
5354
+ "type": "line",
5355
+ "source": "<BMK_BM_SRC>",
5356
+ "source-layer": "roads",
5357
+ "filter": ["all", ["has", "is_tunnel"], ["has", "is_link"]],
5358
+ "paint": {
5359
+ "line-color": "#ffffff",
5360
+ "line-width": [
5361
+ "interpolate",
5362
+ ["exponential", 1.6],
5363
+ ["zoom"],
5364
+ 13,
5365
+ 0,
5366
+ 13.5,
5367
+ 1,
5368
+ 18,
5369
+ 11
5370
+ ],
5371
+ "line-opacity": 0.7
5372
+ }
5373
+ },
5374
+ {
5375
+ "id": "roads_tunnels_major",
5376
+ "type": "line",
5377
+ "source": "<BMK_BM_SRC>",
5378
+ "source-layer": "roads",
5379
+ "filter": ["all", ["has", "is_tunnel"], ["==", "kind", "major_road"]],
5380
+ "paint": {
5381
+ "line-color": "#d5d5d5",
5382
+ "line-width": [
5383
+ "interpolate",
5384
+ ["exponential", 1.6],
5385
+ ["zoom"],
5386
+ 6,
5387
+ 0,
5388
+ 12,
5389
+ 1.6,
5390
+ 15,
5391
+ 3,
5392
+ 18,
5393
+ 13
5394
+ ]
5395
+ }
5396
+ },
5397
+ {
5398
+ "id": "roads_tunnels_highway",
5399
+ "type": "line",
5400
+ "source": "<BMK_BM_SRC>",
5401
+ "source-layer": "roads",
5402
+ "filter": [
5403
+ "all",
5404
+ ["has", "is_tunnel"],
5405
+ ["==", ["get", "kind"], "highway"],
5406
+ ["!", ["has", "is_link"]]
5407
+ ],
5408
+ "paint": {
5409
+ "line-width": [
5410
+ "interpolate",
5411
+ ["exponential", 1.6],
5412
+ ["zoom"],
5413
+ 3,
5414
+ 0,
5415
+ 6,
5416
+ 1.1,
5417
+ 12,
5418
+ 1.6,
5419
+ 15,
5420
+ 5,
5421
+ 18,
5422
+ 15
5423
+ ],
5424
+ "line-color": "#ffffff",
5425
+ "line-opacity": 0.7
5426
+ }
5427
+ },
5428
+ {
5429
+ "id": "buildings",
5430
+ "type": "fill",
5431
+ "source": "<BMK_BM_SRC>",
5432
+ "source-layer": "buildings",
5433
+ "filter": ["in", "kind", "building", "building_part"],
5434
+ "layout": {"visibility": "visible"},
5435
+ "minzoom": 14,
5436
+ "paint": {
5437
+ "fill-opacity": [
5438
+ "interpolate",
5439
+ ["exponential", 1.6],
5440
+ ["zoom"],
5441
+ 14,
5442
+ 0,
5443
+ 15,
5444
+ 0.05
5445
+ ],
5446
+ "fill-color": "#000"
5447
+ }
5448
+ },
5449
+ {
5450
+ "id": "roads_pier",
5451
+ "type": "line",
5452
+ "source": "<BMK_BM_SRC>",
5453
+ "source-layer": "roads",
5454
+ "filter": ["==", "kind_detail", "pier"],
5455
+ "paint": {
5456
+ "line-color": "#e0e0e0",
5457
+ "line-width": [
5458
+ "interpolate",
5459
+ ["exponential", 1.6],
5460
+ ["zoom"],
5461
+ 12,
5462
+ 0,
5463
+ 12.5,
5464
+ 0.5,
5465
+ 20,
5466
+ 16
5467
+ ]
5468
+ }
5469
+ },
5470
+ {
5471
+ "id": "roads_other",
5472
+ "type": "line",
5473
+ "source": "<BMK_BM_SRC>",
5474
+ "source-layer": "roads",
5475
+ "minzoom": 13,
5476
+ "filter": [
5477
+ "all",
5478
+ ["!has", "is_tunnel"],
5479
+ ["!has", "is_bridge"],
5480
+ ["in", "kind", "other", "path"],
5481
+ ["!=", "kind_detail", "pier"]
5482
+ ],
5483
+ "layout": {"visibility": "visible"},
5484
+ "paint": {
5485
+ "line-dasharray": [3, 1.5],
5486
+ "line-width": [
5487
+ "interpolate",
5488
+ ["exponential", 1.6],
5489
+ ["zoom"],
5490
+ 14,
5491
+ 1.5,
5492
+ 20,
5493
+ 9
5494
+ ],
5495
+ "line-color": "#ffffff",
5496
+ "line-opacity": 0.7
5497
+ }
5498
+ },
5499
+ {
5500
+ "id": "roads_link",
5501
+ "type": "line",
5502
+ "source": "<BMK_BM_SRC>",
5503
+ "source-layer": "roads",
5504
+ "filter": ["has", "is_link"],
5505
+ "paint": {
5506
+ "line-width": [
5507
+ "interpolate",
5508
+ ["exponential", 1.6],
5509
+ ["zoom"],
5510
+ 6,
5511
+ 0.5,
5512
+ 13.5,
5513
+ 1,
5514
+ 18,
5515
+ 11
5516
+ ],
5517
+ "line-color": "#ffffff",
5518
+ "line-opacity": 0.7
5519
+ }
5520
+ },
5521
+ {
5522
+ "id": "roads_minor_service",
5523
+ "type": "line",
5524
+ "source": "<BMK_BM_SRC>",
5525
+ "source-layer": "roads",
5526
+ "filter": [
5527
+ "all",
5528
+ ["!has", "is_tunnel"],
5529
+ ["!has", "is_bridge"],
5530
+ ["==", "kind", "minor_road"],
5531
+ ["==", "kind_detail", "service"]
5532
+ ],
5533
+ "paint": {
5534
+ "line-width": [
5535
+ "interpolate",
5536
+ ["exponential", 1.6],
5537
+ ["zoom"],
5538
+ 13,
5539
+ 0,
5540
+ 18,
5541
+ 8
5542
+ ],
5543
+ "line-color": "#ffffff",
5544
+ "line-opacity": 0.7
5545
+ }
5546
+ },
5547
+ {
5548
+ "id": "roads_minor",
5549
+ "type": "line",
5550
+ "source": "<BMK_BM_SRC>",
5551
+ "source-layer": "roads",
5552
+ "filter": [
5553
+ "all",
5554
+ ["!has", "is_tunnel"],
5555
+ ["!has", "is_bridge"],
5556
+ ["==", "kind", "minor_road"],
5557
+ ["!=", "kind_detail", "service"]
5558
+ ],
5559
+ "layout": {"visibility": "visible"},
5560
+ "paint": {
5561
+ "line-width": [
5562
+ "interpolate",
5563
+ ["exponential", 1.6],
5564
+ ["zoom"],
5565
+ 11,
5566
+ 0,
5567
+ 12.5,
5568
+ 0.5,
5569
+ 15,
5570
+ 2,
5571
+ 18,
5572
+ 11
5573
+ ],
5574
+ "line-color": "#ffffff",
5575
+ "line-opacity": 0.7
5576
+ }
5577
+ },
5578
+ {
5579
+ "id": "roads_major",
5580
+ "type": "line",
5581
+ "source": "<BMK_BM_SRC>",
5582
+ "source-layer": "roads",
5583
+ "filter": [
5584
+ "all",
5585
+ ["!has", "is_tunnel"],
5586
+ ["!has", "is_bridge"],
5587
+ ["in", "kind", "major_road"]
5588
+ ],
5589
+ "layout": {"visibility": "visible"},
5590
+ "paint": {
5591
+ "line-width": [
5592
+ "interpolate",
5593
+ ["exponential", 1.6],
5594
+ ["zoom"],
5595
+ 3,
5596
+ 0,
5597
+ 6,
5598
+ 1.1,
5599
+ 12,
5600
+ 1.6,
5601
+ 15,
5602
+ 5,
5603
+ 18,
5604
+ 15
5605
+ ],
5606
+ "line-opacity": 0.7,
5607
+ "line-color": "#ffffff"
5608
+ }
5609
+ },
5610
+ {
5611
+ "id": "roads_highway",
5612
+ "type": "line",
5613
+ "source": "<BMK_BM_SRC>",
5614
+ "source-layer": "roads",
5615
+ "filter": [
5616
+ "all",
5617
+ ["!has", "is_tunnel"],
5618
+ ["!has", "is_bridge"],
5619
+ ["==", "kind", "highway"],
5620
+ ["!has", "is_link"]
5621
+ ],
5622
+ "layout": {"visibility": "visible"},
5623
+ "paint": {
5624
+ "line-width": [
5625
+ "interpolate",
5626
+ ["exponential", 1.6],
5627
+ ["zoom"],
5628
+ 3,
5629
+ 0,
5630
+ 6,
5631
+ 1.1,
5632
+ 12,
5633
+ 1.6,
5634
+ 15,
5635
+ 5,
5636
+ 18,
5637
+ 15
5638
+ ],
5639
+ "line-color": "#ffffff",
5640
+ "line-opacity": 0.7
5641
+ }
5642
+ },
5643
+ {
5644
+ "id": "roads_rail",
5645
+ "type": "line",
5646
+ "source": "<BMK_BM_SRC>",
5647
+ "source-layer": "roads",
5648
+ "filter": ["==", "kind", "rail"],
5649
+ "layout": {"visibility": "visible"},
5650
+ "paint": {
5651
+ "line-dasharray": [0.3, 0.75],
5652
+ "line-opacity": 0.7,
5653
+ "line-color": "#ffffff",
5654
+ "line-width": [
5655
+ "interpolate",
5656
+ ["exponential", 1.6],
5657
+ ["zoom"],
5658
+ 3,
5659
+ 0,
5660
+ 6,
5661
+ 0.15,
5662
+ 18,
5663
+ 6
5664
+ ]
5665
+ }
5666
+ },
5667
+ {
5668
+ "id": "boundaries_country",
5669
+ "type": "line",
5670
+ "source": "<BMK_BM_SRC>",
5671
+ "source-layer": "boundaries",
5672
+ "minzoom": 0,
5673
+ "filter": ["<=", "kind_detail", 2],
5674
+ "layout": {"visibility": "visible"},
5675
+ "paint": {
5676
+ "line-width": [
5677
+ "interpolate",
5678
+ ["exponential", 1.6],
5679
+ ["zoom"],
5680
+ 0,
5681
+ 1,
5682
+ 3,
5683
+ 1,
5684
+ 5,
5685
+ 1.5,
5686
+ 8,
5687
+ 3,
5688
+ 10,
5689
+ 4,
5690
+ 15,
5691
+ 7
5692
+ ],
5693
+ "line-color": "#000",
5694
+ "line-opacity": 0.4
5695
+ }
5696
+ },
5697
+ {
5698
+ "id": "boundaries",
5699
+ "type": "line",
5700
+ "source": "<BMK_BM_SRC>",
5701
+ "source-layer": "boundaries",
5702
+ "filter": [">", "kind_detail", 2],
5703
+ "layout": {"visibility": "visible"},
5704
+ "paint": {
5705
+ "line-width": 1,
5706
+ "line-dasharray": [
5707
+ "step",
5708
+ ["zoom"],
5709
+ ["literal", [2]],
5710
+ 4,
5711
+ ["literal", [2, 2]]
5712
+ ],
5713
+ "line-color": "#000",
5714
+ "line-opacity": 0.4
5715
+ }
5716
+ },
5717
+ {
5718
+ "id": "roads_bridges_other",
5719
+ "type": "line",
5720
+ "source": "<BMK_BM_SRC>",
5721
+ "source-layer": "roads",
5722
+ "minzoom": 12,
5723
+ "filter": ["all", ["has", "is_bridge"], ["in", "kind", "other", "path"]],
5724
+ "layout": {"visibility": "visible"},
5725
+ "paint": {
5726
+ "line-color": "#ebebeb",
5727
+ "line-dasharray": [2, 1],
5728
+ "line-width": [
5729
+ "interpolate",
5730
+ ["exponential", 1.6],
5731
+ ["zoom"],
5732
+ 14,
5733
+ 0,
5734
+ 20,
5735
+ 7
5736
+ ]
5737
+ }
5738
+ },
5739
+ {
5740
+ "id": "roads_bridges_minor",
5741
+ "type": "line",
5742
+ "source": "<BMK_BM_SRC>",
5743
+ "source-layer": "roads",
5744
+ "minzoom": 12,
5745
+ "filter": ["all", ["has", "is_bridge"], ["==", "kind", "minor_road"]],
5746
+ "paint": {
5747
+ "line-color": "#ffffff",
5748
+ "line-width": [
5749
+ "interpolate",
5750
+ ["exponential", 1.6],
5751
+ ["zoom"],
5752
+ 11,
5753
+ 0,
5754
+ 12.5,
5755
+ 0.5,
5756
+ 15,
5757
+ 2,
5758
+ 18,
5759
+ 11
5760
+ ]
5761
+ }
5762
+ },
5763
+ {
5764
+ "id": "roads_bridges_link",
5765
+ "type": "line",
5766
+ "source": "<BMK_BM_SRC>",
5767
+ "source-layer": "roads",
5768
+ "minzoom": 12,
5769
+ "filter": ["all", ["has", "is_bridge"], ["has", "is_link"]],
5770
+ "paint": {
5771
+ "line-color": "#ffffff",
5772
+ "line-width": [
5773
+ "interpolate",
5774
+ ["exponential", 1.6],
5775
+ ["zoom"],
5776
+ 13,
5777
+ 0,
5778
+ 13.5,
5779
+ 1,
5780
+ 18,
5781
+ 11
5782
+ ],
5783
+ "line-opacity": 0.7
5784
+ }
5785
+ },
5786
+ {
5787
+ "id": "roads_bridges_major",
5788
+ "type": "line",
5789
+ "source": "<BMK_BM_SRC>",
5790
+ "source-layer": "roads",
5791
+ "minzoom": 12,
5792
+ "filter": ["all", ["has", "is_bridge"], ["==", "kind", "major_road"]],
5793
+ "paint": {
5794
+ "line-color": "#ffffff",
5795
+ "line-width": [
5796
+ "interpolate",
5797
+ ["exponential", 1.6],
5798
+ ["zoom"],
5799
+ 6,
5800
+ 0,
5801
+ 12,
5802
+ 1.6,
5803
+ 15,
5804
+ 3,
5805
+ 18,
5806
+ 13
5807
+ ],
5808
+ "line-opacity": 0.7
5809
+ }
5810
+ },
5811
+ {
5812
+ "id": "cycleway",
5813
+ "type": "line",
5814
+ "source": "<BMK_BM_SRC>",
5815
+ "source-layer": "roads",
5816
+ "filter": ["any", ["==", "kind_detail", "cycleway"]],
5817
+ "layout": {"visibility": "visible"},
5818
+ "paint": {
5819
+ "line-width": [
5820
+ "interpolate",
5821
+ ["exponential", 1.6],
5822
+ ["zoom"],
5823
+ 12.5,
5824
+ 1,
5825
+ 15,
5826
+ 2,
5827
+ 18,
5828
+ 4
5829
+ ],
5830
+ "line-color": "#ffffff",
5831
+ "line-dasharray": [3, 1.5],
5832
+ "line-opacity": 0.5
5833
+ }
5834
+ },
5835
+ {
5836
+ "id": "roads_bridges_highway",
5837
+ "type": "line",
5838
+ "source": "<BMK_BM_SRC>",
5839
+ "source-layer": "roads",
5840
+ "filter": [
5841
+ "all",
5842
+ ["has", "is_bridge"],
5843
+ ["==", "kind", "highway"],
5844
+ ["!has", "is_link"]
5845
+ ],
5846
+ "paint": {
5847
+ "line-color": "#ffffff",
5848
+ "line-width": [
5849
+ "interpolate",
5850
+ ["exponential", 1.6],
5851
+ ["zoom"],
5852
+ 3,
5853
+ 0,
5854
+ 6,
5855
+ 1.1,
5856
+ 12,
5857
+ 1.6,
5858
+ 15,
5859
+ 5,
5860
+ 18,
5861
+ 15
5862
+ ],
5863
+ "line-opacity": 0.7
5864
+ }
5865
+ },
5866
+ {
5867
+ "id": "water_waterway_label",
5868
+ "type": "symbol",
5869
+ "source": "<BMK_BM_SRC>",
5870
+ "source-layer": "water",
5871
+ "minzoom": 13,
5872
+ "filter": ["in", "kind", "river", "stream"],
5873
+ "layout": {
5874
+ "symbol-placement": "line",
5875
+ "text-font": ["Noto Sans Italic"],
5876
+ "text-field": "<LANG>",
5877
+ "text-size": 12,
5878
+ "text-letter-spacing": 0.2
5879
+ },
5880
+ "paint": {"text-color": "rgba(255, 255, 255, 0.75)"}
5881
+ },
5882
+ {
5883
+ "id": "roads_labels_minor",
5884
+ "type": "symbol",
5885
+ "source": "<BMK_BM_SRC>",
5886
+ "source-layer": "roads",
5887
+ "minzoom": 15,
5888
+ "filter": ["in", "kind", "minor_road", "other", "path"],
5889
+ "layout": {
5890
+ "symbol-sort-key": ["get", "min_zoom"],
5891
+ "symbol-placement": "line",
5892
+ "text-font": ["Noto Sans Regular"],
5893
+ "text-field": "<LANG>",
5894
+ "text-size": 12,
5895
+ "visibility": "visible"
5896
+ },
5897
+ "paint": {
5898
+ "text-color": "rgba(0, 0, 0, 0.75)",
5899
+ "text-halo-color": "rgba(255, 255, 255, 0.5)",
5900
+ "text-halo-width": 1
5901
+ }
5902
+ },
5903
+ {
5904
+ "id": "water_label_ocean",
5905
+ "type": "symbol",
5906
+ "source": "<BMK_BM_SRC>",
5907
+ "source-layer": "water",
5908
+ "filter": ["in", "kind", "sea", "ocean", "bay", "strait", "fjord"],
5909
+ "layout": {
5910
+ "text-font": ["Noto Sans Italic"],
5911
+ "text-field": "<LANG>",
5912
+ "text-size": ["interpolate", ["linear"], ["zoom"], 1, 12, 10, 12],
5913
+ "text-letter-spacing": 0.1,
5914
+ "text-max-width": 9,
5915
+ "text-transform": "uppercase"
5916
+ },
5917
+ "paint": {
5918
+ "text-color": "rgba(255, 255, 255, 0.5)"
5919
+ }
5920
+ },
5921
+ {
5922
+ "id": "earth_label_islands",
5923
+ "type": "symbol",
5924
+ "source": "<BMK_BM_SRC>",
5925
+ "source-layer": "earth",
5926
+ "filter": ["in", "kind", "island"],
5927
+ "layout": {
5928
+ "text-font": ["Noto Sans Italic"],
5929
+ "text-field": "<LANG>",
5930
+ "text-size": 10,
5931
+ "text-letter-spacing": 0.1,
5932
+ "text-max-width": 8
5933
+ },
5934
+ "paint": {
5935
+ "text-color": "rgba(0, 0, 0, 0.85)",
5936
+ "text-halo-color": "rgba(255, 255, 255, 0.85)",
5937
+ "text-halo-width": 1
5938
+ }
5939
+ },
5940
+ {
5941
+ "id": "water_label_lakes",
5942
+ "type": "symbol",
5943
+ "source": "<BMK_BM_SRC>",
5944
+ "source-layer": "water",
5945
+ "filter": ["in", "kind", "lake", "water"],
5946
+ "layout": {
5947
+ "text-font": ["Noto Sans Italic"],
5948
+ "text-field": "<LANG>",
5949
+ "text-size": [
5950
+ "interpolate",
5951
+ ["linear"],
5952
+ ["zoom"],
5953
+ 3,
5954
+ 10,
5955
+ 6,
5956
+ 12,
5957
+ 10,
5958
+ 12
5959
+ ],
5960
+ "text-letter-spacing": 0.1,
5961
+ "text-max-width": 9
5962
+ },
5963
+ "paint": {"text-color": "rgba(255, 255, 255, 0.75)"}
5964
+ },
5965
+ {
5966
+ "id": "roads_labels_major",
5967
+ "type": "symbol",
5968
+ "source": "<BMK_BM_SRC>",
5969
+ "source-layer": "roads",
5970
+ "minzoom": 11,
5971
+ "filter": ["in", "kind", "highway", "major_road"],
5972
+ "layout": {
5973
+ "symbol-sort-key": ["get", "min_zoom"],
5974
+ "symbol-placement": "line",
5975
+ "text-font": ["Noto Sans Regular"],
5976
+ "text-field": "<LANG>",
5977
+ "text-size": 12,
5978
+ "visibility": "visible"
5979
+ },
5980
+ "paint": {
5981
+ "text-color": "rgba(0, 0, 0, 0.75)",
5982
+ "text-halo-color": "rgba(255, 255, 255, 0.5)",
5983
+ "text-halo-width": 1
5984
+ }
5985
+ },
5986
+ {
5987
+ "id": "pois",
5988
+ "type": "symbol",
5989
+ "source": "<BMK_BM_SRC>",
5990
+ "source-layer": "pois",
5991
+ "filter": [
5992
+ "all",
5993
+ [
5994
+ "in",
5995
+ ["get", "kind"],
5996
+ [
5997
+ "literal",
5998
+ [
5999
+ "beach",
6000
+ "forest",
6001
+ "marina",
6002
+ "park",
6003
+ "peak",
6004
+ "zoo",
6005
+ "garden",
6006
+ "aerodrome",
6007
+ "station",
6008
+ "ferry_terminal",
6009
+ "stadium",
6010
+ "university",
6011
+ "library",
6012
+ "school",
6013
+ "animal",
6014
+ "toilet",
6015
+ "drinking_water",
6016
+ "viewpoint",
6017
+ "attraction",
6018
+ "camp_site",
6019
+ "college",
6020
+ "fishing",
6021
+ "golf_course",
6022
+ "hospital",
6023
+ "information",
6024
+ "landmark",
6025
+ "military",
6026
+ "national_park",
6027
+ "nature_reserve",
6028
+ "picnic_site",
6029
+ "picnic_table",
6030
+ "playground",
6031
+ "railway",
6032
+ "townhall",
6033
+ "zoo"
6034
+ ]
6035
+ ]
6036
+ ],
6037
+ [">=", ["zoom"], ["+", ["get", "min_zoom"], -2]]
6038
+ ],
6039
+ "layout": {
6040
+ "icon-image": [
6041
+ "match",
6042
+ ["get", "kind"],
6043
+ "park",
6044
+ "garden",
6045
+ ["get", "kind"]
6046
+ ],
6047
+ "text-font": ["Noto Sans Regular"],
6048
+ "text-justify": "auto",
6049
+ "text-field": "<LANG>",
6050
+ "text-size": ["interpolate", ["linear"], ["zoom"], 17, 11, 19, 14],
6051
+ "text-max-width": 8,
6052
+ "text-offset": [1.5, 0],
6053
+ "text-variable-anchor": ["left", "right"],
6054
+ "visibility": "visible"
6055
+ },
6056
+ "paint": {
6057
+ "text-color": "rgba(0, 0, 0, 0.75)",
6058
+ "text-halo-color": "rgba(255, 255, 255, 0.5)",
6059
+ "text-halo-width": 1.5
6060
+ }
6061
+ },
6062
+ {
6063
+ "id": "places_subplace",
6064
+ "type": "symbol",
6065
+ "source": "<BMK_BM_SRC>",
6066
+ "source-layer": "places",
6067
+ "filter": ["==", "kind", "neighbourhood"],
6068
+ "layout": {
6069
+ "symbol-sort-key": [
6070
+ "case",
6071
+ ["has", "sort_key"],
6072
+ ["get", "sort_key"],
6073
+ ["get", "min_zoom"]
6074
+ ],
6075
+ "text-field": "<LANG>",
6076
+ "text-font": ["Noto Sans Regular"],
6077
+ "text-max-width": 7,
6078
+ "text-letter-spacing": 0.1,
6079
+ "text-padding": [
6080
+ "interpolate",
6081
+ ["linear"],
6082
+ ["zoom"],
6083
+ 5,
6084
+ 2,
6085
+ 8,
6086
+ 4,
6087
+ 12,
6088
+ 18,
6089
+ 15,
6090
+ 20
6091
+ ],
6092
+ "text-size": [
6093
+ "interpolate",
6094
+ ["exponential", 1.2],
6095
+ ["zoom"],
6096
+ 11,
6097
+ 8,
6098
+ 14,
6099
+ 14,
6100
+ 18,
6101
+ 24
6102
+ ],
6103
+ "text-transform": "uppercase"
6104
+ },
6105
+ "paint": {
6106
+ "text-color": "rgba(0, 0, 0, 0.75)",
6107
+ "text-halo-color": "rgba(255, 255, 255, 0.5)",
6108
+ "text-halo-width": 1
6109
+ }
6110
+ },
6111
+ {
6112
+ "id": "places_region",
6113
+ "type": "symbol",
6114
+ "source": "<BMK_BM_SRC>",
6115
+ "source-layer": "places",
6116
+ "filter": ["==", "kind", "region"],
6117
+ "layout": {
6118
+ "symbol-sort-key": ["get", "sort_key"],
6119
+ "text-field": "<LANG>",
6120
+ "text-font": ["Noto Sans Regular"],
6121
+ "text-size": ["interpolate", ["linear"], ["zoom"], 3, 12, 7, 18],
6122
+ "text-radial-offset": 0.2,
6123
+ "text-anchor": "center",
6124
+ "text-transform": "uppercase"
6125
+ },
6126
+ "paint": {
6127
+ "text-halo-color": "rgba(0, 0, 0, 0.75)",
6128
+ "text-halo-width": 1,
6129
+ "text-color": "#ffffff"
6130
+ }
6131
+ },
6132
+ {
6133
+ "id": "places_locality_circle",
6134
+ "type": "circle",
6135
+ "source": "<BMK_BM_SRC>",
6136
+ "source-layer": "places",
6137
+ "filter": ["==", "kind", "locality"],
6138
+ "maxzoom": 8,
6139
+ "paint": {
6140
+ "circle-radius": {
6141
+ "stops": [[4, 2.5], [8, 3.5]]
6142
+ },
6143
+ "circle-color": "rgba(255, 255, 255, 0.55)",
6144
+ "circle-stroke-width": 1.75,
6145
+ "circle-stroke-color": "rgba(0, 0, 0, 0.45)"
6146
+ }
6147
+ },
2041
6148
  {
2042
6149
  "id": "places_locality",
2043
6150
  "type": "symbol",
@@ -2079,25 +6186,25 @@ const U = `[
2079
6186
  [
2080
6187
  "case",
2081
6188
  ["<", ["get", "population_rank"], 13],
2082
- 8,
6189
+ 10,
2083
6190
  [">=", ["get", "population_rank"], 13],
2084
- 13,
6191
+ 15,
2085
6192
  0
2086
6193
  ],
2087
6194
  4,
2088
6195
  [
2089
6196
  "case",
2090
6197
  ["<", ["get", "population_rank"], 13],
2091
- 12,
6198
+ 14,
2092
6199
  [">=", ["get", "population_rank"], 13],
2093
- 17,
6200
+ 18,
2094
6201
  0
2095
6202
  ],
2096
6203
  6,
2097
6204
  [
2098
6205
  "case",
2099
6206
  ["<", ["get", "population_rank"], 12],
2100
- 13,
6207
+ 15,
2101
6208
  [">=", ["get", "population_rank"], 12],
2102
6209
  18,
2103
6210
  0
@@ -2106,27 +6213,27 @@ const U = `[
2106
6213
  [
2107
6214
  "case",
2108
6215
  ["<", ["get", "population_rank"], 11],
2109
- 11,
6216
+ 15,
2110
6217
  [">=", ["get", "population_rank"], 11],
2111
- 18,
6218
+ 21,
2112
6219
  0
2113
6220
  ],
2114
6221
  10,
2115
6222
  [
2116
6223
  "case",
2117
6224
  ["<", ["get", "population_rank"], 9],
2118
- 12,
6225
+ 16,
2119
6226
  [">=", ["get", "population_rank"], 9],
2120
- 20,
6227
+ 21,
2121
6228
  0
2122
6229
  ],
2123
6230
  15,
2124
6231
  [
2125
6232
  "case",
2126
6233
  ["<", ["get", "population_rank"], 8],
2127
- 12,
6234
+ 16,
2128
6235
  [">=", ["get", "population_rank"], 8],
2129
- 22,
6236
+ 23,
2130
6237
  0
2131
6238
  ]
2132
6239
  ],
@@ -2157,8 +6264,8 @@ const U = `[
2157
6264
  "visibility": "visible"
2158
6265
  },
2159
6266
  "paint": {
2160
- "text-color": "rgba(94, 68, 51, 1)",
2161
- "text-halo-color": "rgba(253, 250, 249, 1)",
6267
+ "text-color": "rgba(0, 0, 0, 0.85)",
6268
+ "text-halo-color": "rgba(255, 255, 255, 0.85)",
2162
6269
  "text-halo-width": 1
2163
6270
  }
2164
6271
  },
@@ -2227,51 +6334,38 @@ const U = `[
2227
6334
  "text-transform": "none"
2228
6335
  },
2229
6336
  "paint": {
2230
- "text-color": "rgba(84, 79, 73, 1)",
2231
- "text-halo-color": "rgba(255, 255, 255, 1)",
6337
+ "text-color": "rgba(0, 0, 0, 0.9)",
6338
+ "text-halo-color": "rgba(255, 255, 255, 0.7)",
2232
6339
  "text-halo-width": 1.5
2233
6340
  }
2234
- },
2235
- {
2236
- "id": "building_extrusion",
2237
- "type": "fill-extrusion",
2238
- "source": "<BMK_BM_SRC>",
2239
- "source-layer": "buildings",
2240
- "filter": [
2241
- "any",
2242
- ["==", "kind", "building_part"],
2243
- ["==", "kind", "building"]
2244
- ],
2245
- "layout": {"visibility": "none"},
2246
- "paint": {
2247
- "fill-extrusion-opacity": 0.1,
2248
- "fill-extrusion-height": {"type": "identity", "property": "height"}
2249
- }
2250
6341
  }
2251
-
2252
6342
  ]`;
2253
- function O(n, i) {
2254
- const e = E.filter((o) => o.lang === n);
2255
- if (e.length === 0)
6343
+ function I(n, e) {
6344
+ const i = N.filter((t) => t.lang === n);
6345
+ if (i.length === 0)
2256
6346
  throw new Error(
2257
- `The language "${n}". The languages available are: ${E.map((o) => o.lang).join(", ")}.`
6347
+ `The language "${n}". The languages available are: ${N.map((t) => t.lang).join(", ")}.`
2258
6348
  );
2259
- if (i) {
2260
- if (e.filter((r) => r.script === i).length)
6349
+ if (e) {
6350
+ if (i.filter((r) => r.script === e).length)
2261
6351
  return !0;
2262
6352
  throw new Error(
2263
- `The script "${i}" for the language "${n}" is unsupported. Script available for this language: ${e.map((r) => r.script).join(", ")}.`
6353
+ `The script "${e}" for the language "${n}" is unsupported. Script available for this language: ${i.map((r) => r.script).join(", ")}.`
2264
6354
  );
2265
6355
  }
2266
6356
  return !0;
2267
6357
  }
2268
- function J() {
6358
+ function Q() {
2269
6359
  const n = Intl.DateTimeFormat().resolvedOptions().locale.split("-")[0];
2270
- return O(n, void 0) ? n : "en";
6360
+ return I(n, void 0) ? n : "en";
2271
6361
  }
2272
- const b = {
2273
- avenue: U
2274
- }, z = {
6362
+ const x = {
6363
+ avenue: U,
6364
+ bureau: Y,
6365
+ journal: J,
6366
+ monochrome: H,
6367
+ spectre: q
6368
+ }, R = {
2275
6369
  "avenue-pop": {
2276
6370
  baseStyle: "avenue",
2277
6371
  colorEdit: {
@@ -2344,119 +6438,429 @@ const b = {
2344
6438
  hueRotation: -5,
2345
6439
  contrast: [0.2, 200]
2346
6440
  }
6441
+ },
6442
+ "bureau-negative": {
6443
+ baseStyle: "bureau",
6444
+ colorEdit: {
6445
+ negate: !0,
6446
+ hueRotation: 180
6447
+ }
6448
+ },
6449
+ "bureau-bnw": {
6450
+ baseStyle: "bureau",
6451
+ colorEdit: {
6452
+ saturation: -1
6453
+ }
6454
+ },
6455
+ "bureau-purple": {
6456
+ baseStyle: "bureau",
6457
+ colorEdit: {
6458
+ negate: !1,
6459
+ brightness: -0.2,
6460
+ hueRotation: 40,
6461
+ saturation: -0.4
6462
+ }
6463
+ },
6464
+ "bureau-bnw-negative": {
6465
+ baseStyle: "bureau",
6466
+ colorEdit: {
6467
+ negate: !0,
6468
+ saturation: -1
6469
+ }
6470
+ },
6471
+ "bureau-bnw-dark": {
6472
+ baseStyle: "bureau",
6473
+ colorEdit: {
6474
+ brightness: -0.6,
6475
+ saturation: -1
6476
+ }
6477
+ },
6478
+ "bureau-bnw-bright": {
6479
+ baseStyle: "bureau",
6480
+ colorEdit: {
6481
+ brightnessShift: 0.3,
6482
+ saturation: -1
6483
+ }
6484
+ },
6485
+ "bureau-bnw-negative-bright": {
6486
+ baseStyle: "bureau",
6487
+ colorEdit: {
6488
+ brightnessShift: 0.35,
6489
+ exposure: 0.8,
6490
+ saturation: -1,
6491
+ negate: !0,
6492
+ contrast: [0.5, 245]
6493
+ }
6494
+ },
6495
+ "bureau-bnw-negative-dark": {
6496
+ baseStyle: "bureau",
6497
+ colorEdit: {
6498
+ brightnessShift: -0.2,
6499
+ brightness: -0.3,
6500
+ saturation: -1,
6501
+ negate: !0
6502
+ }
6503
+ },
6504
+ "bureau-sand": {
6505
+ baseStyle: "bureau",
6506
+ colorEdit: {
6507
+ brightnessShift: 0.2,
6508
+ exposure: 0.2,
6509
+ saturation: -1,
6510
+ negate: !1,
6511
+ multiplyColor: ["#ffeeab", 0.45],
6512
+ mixColor: ["#ffeeab", 0.1]
6513
+ }
6514
+ },
6515
+ "bureau-sand-negative": {
6516
+ baseStyle: "bureau",
6517
+ colorEdit: {
6518
+ brightnessShift: 0.2,
6519
+ exposure: 0.2,
6520
+ saturation: -1,
6521
+ negate: !0,
6522
+ multiplyColor: ["#ffeeab", 0.45],
6523
+ mixColor: ["#ffeeab", 0.1]
6524
+ }
6525
+ },
6526
+ "bureau-ivory": {
6527
+ baseStyle: "bureau",
6528
+ colorEdit: {
6529
+ brightnessShift: 0.2,
6530
+ exposure: 0.2,
6531
+ saturation: -1,
6532
+ negate: !1,
6533
+ multiplyColor: ["#f0e9d1", 0.45],
6534
+ mixColor: ["#f0e9d1", 0.1]
6535
+ }
6536
+ },
6537
+ "bureau-ivory-negative": {
6538
+ baseStyle: "bureau",
6539
+ colorEdit: {
6540
+ brightnessShift: 0.2,
6541
+ exposure: 0.2,
6542
+ saturation: -1,
6543
+ multiplyColor: ["#f0e9d1", 0.45],
6544
+ mixColor: ["#f0e9d1", 0.1],
6545
+ negate: !0
6546
+ }
6547
+ },
6548
+ "bureau-navy": {
6549
+ baseStyle: "bureau",
6550
+ colorEdit: {
6551
+ brightnessShift: -0.4,
6552
+ exposure: -0.2,
6553
+ saturation: 1,
6554
+ contrast: [0.5, 50]
6555
+ }
6556
+ },
6557
+ "journal-night": {
6558
+ baseStyle: "journal",
6559
+ colorEdit: {
6560
+ brightnessShift: -0.15,
6561
+ exposure: -2,
6562
+ saturation: -0.6,
6563
+ multiplyColor: ["#4444ff", 0.2]
6564
+ }
6565
+ },
6566
+ "journal-teal": {
6567
+ baseStyle: "journal",
6568
+ colorEdit: {
6569
+ brightnessShift: 0.02,
6570
+ exposure: -1.2,
6571
+ hueRotation: -5,
6572
+ saturation: -0.35,
6573
+ multiplyColor: ["#ff9900", 0.05]
6574
+ }
6575
+ },
6576
+ "journal-vintage": {
6577
+ baseStyle: "journal",
6578
+ colorEdit: {
6579
+ brightness: 0.02,
6580
+ brightnessShift: 0.03,
6581
+ exposure: -1.4,
6582
+ saturation: -0.3,
6583
+ contrast: [0.2, 180],
6584
+ multiplyColor: ["#ffc963", 0.25],
6585
+ mixColor: ["#ffc963", 0.08]
6586
+ }
6587
+ },
6588
+ "spectre-mild-green": {
6589
+ baseStyle: "spectre",
6590
+ colorEdit: {
6591
+ saturation: -0.2
6592
+ }
6593
+ },
6594
+ "spectre-red": {
6595
+ baseStyle: "spectre",
6596
+ colorEdit: {
6597
+ hueRotation: -120,
6598
+ saturation: -0.3
6599
+ }
6600
+ },
6601
+ "spectre-blue": {
6602
+ baseStyle: "spectre",
6603
+ colorEdit: {
6604
+ hueRotation: 90
6605
+ }
6606
+ },
6607
+ "spectre-purple": {
6608
+ baseStyle: "spectre",
6609
+ colorEdit: {
6610
+ hueRotation: 150,
6611
+ saturation: -0.3
6612
+ }
6613
+ },
6614
+ "spectre-pink": {
6615
+ baseStyle: "spectre",
6616
+ colorEdit: {
6617
+ hueRotation: 190,
6618
+ saturation: -0.2
6619
+ }
6620
+ },
6621
+ "spectre-orange": {
6622
+ baseStyle: "spectre",
6623
+ colorEdit: {
6624
+ hueRotation: 260
6625
+ }
6626
+ },
6627
+ "spectre-yellow": {
6628
+ baseStyle: "spectre",
6629
+ colorEdit: {
6630
+ hueRotation: 290,
6631
+ saturation: 0.1
6632
+ }
6633
+ },
6634
+ "spectre-negative": {
6635
+ baseStyle: "spectre",
6636
+ colorEdit: {
6637
+ negate: !0,
6638
+ hueRotation: 180
6639
+ }
6640
+ },
6641
+ "spectre-negative-mild-green": {
6642
+ baseStyle: "spectre",
6643
+ colorEdit: {
6644
+ negate: !0,
6645
+ hueRotation: 180,
6646
+ saturation: -0.2
6647
+ }
6648
+ },
6649
+ "spectre-negative-red": {
6650
+ baseStyle: "spectre",
6651
+ colorEdit: {
6652
+ negate: !0,
6653
+ hueRotation: 60,
6654
+ saturation: -0.3
6655
+ }
6656
+ },
6657
+ "spectre-negative-blue": {
6658
+ baseStyle: "spectre",
6659
+ colorEdit: {
6660
+ negate: !0,
6661
+ hueRotation: 270
6662
+ }
6663
+ },
6664
+ "spectre-negative-purple": {
6665
+ baseStyle: "spectre",
6666
+ colorEdit: {
6667
+ negate: !0,
6668
+ hueRotation: -20,
6669
+ saturation: -0.3
6670
+ }
6671
+ },
6672
+ "spectre-negative-pink": {
6673
+ baseStyle: "spectre",
6674
+ colorEdit: {
6675
+ negate: !0,
6676
+ hueRotation: 10,
6677
+ saturation: -0.2
6678
+ }
6679
+ },
6680
+ "spectre-negative-orange": {
6681
+ baseStyle: "spectre",
6682
+ colorEdit: {
6683
+ negate: !0,
6684
+ hueRotation: 80
6685
+ }
6686
+ },
6687
+ "spectre-negative-yellow": {
6688
+ baseStyle: "spectre",
6689
+ colorEdit: {
6690
+ negate: !0,
6691
+ hueRotation: 110,
6692
+ saturation: 0.1
6693
+ }
6694
+ }
6695
+ }, E = "__bmk_bm_src", v = "__bmk_tr_src";
6696
+ function en() {
6697
+ const n = [];
6698
+ for (const e of Object.keys(x)) {
6699
+ n.push(e);
6700
+ const i = Object.entries(R).filter(([t, r]) => r.baseStyle === e).map(([t]) => t);
6701
+ n.push(...i);
2347
6702
  }
2348
- }, L = "__bmk_bm_src", w = "__bmk_tr_src";
2349
- function V() {
2350
- return Object.keys(b).concat(Object.keys(z));
6703
+ return n;
2351
6704
  }
2352
- function X(n, i) {
2353
- if (n in b)
2354
- return T({
2355
- ...i,
6705
+ function tn(n, e) {
6706
+ if (n in x)
6707
+ return G({
6708
+ ...e,
2356
6709
  baseStyleName: n
2357
6710
  });
2358
- if (n in z) {
2359
- const e = z[n];
2360
- return T({
2361
- ...i,
2362
- baseStyleName: e.baseStyle,
2363
- colorEdit: e.colorEdit
6711
+ if (n in R) {
6712
+ const i = R[n];
6713
+ return G({
6714
+ ...e,
6715
+ baseStyleName: i.baseStyle,
6716
+ colorEdit: i.colorEdit
2364
6717
  });
2365
6718
  }
2366
6719
  throw new Error(`The style "${n}" does not exist as a base style, nor as a preset.`);
2367
6720
  }
2368
- function T(n) {
2369
- let i, e;
2370
- const o = n.hideLabels ?? !1;
2371
- if (o)
2372
- i = '""', e = '""';
2373
- else if (typeof n.lang == "string" && O(n.lang, n.script))
2374
- i = JSON.stringify(A(n.lang, n.script)), e = JSON.stringify(N(n.lang, n.script));
6721
+ function G(n) {
6722
+ let e, i;
6723
+ const t = n.hideLabels ?? !1;
6724
+ if (t)
6725
+ e = '""', i = '""';
6726
+ else if (typeof n.lang == "string" && I(n.lang, n.script))
6727
+ e = JSON.stringify(j(n.lang, n.script)), i = JSON.stringify(A(n.lang, n.script));
2375
6728
  else {
2376
- const a = J();
2377
- i = JSON.stringify(A(a)), e = JSON.stringify(N(a));
6729
+ const s = Q();
6730
+ e = JSON.stringify(j(s)), i = JSON.stringify(A(s));
2378
6731
  }
2379
- if (!(n.baseStyleName in b))
6732
+ if (!(n.baseStyleName in x))
2380
6733
  throw new Error(`The base style ${n.baseStyleName} does not exist.`);
2381
- const c = b[n.baseStyleName].replaceAll("<BMK_BM_SRC>", L).replaceAll("<BMK_TR_SRC>", w).replaceAll('"<LANG>"', e).replaceAll('"<LANG_COUNTRY>"', i);
2382
- let g;
6734
+ const d = x[n.baseStyleName].replaceAll("<BMK_BM_SRC>", E).replaceAll("<BMK_TR_SRC>", v).replaceAll('"<LANG>"', i).replaceAll('"<LANG_COUNTRY>"', e);
6735
+ let l;
2383
6736
  if (typeof n.tilejson == "string")
2384
- g = n.tilejson;
6737
+ l = n.tilejson;
2385
6738
  else if (typeof n.pmtiles == "string")
2386
- g = `pmtiles://${n.pmtiles}`;
6739
+ l = `pmtiles://${n.pmtiles}`;
2387
6740
  else
2388
6741
  throw new Error('At least one option of "tilejson" or "pmtiles" must be provided as data source.');
2389
- let u = "", m = !1, C = "", h = 0;
2390
- n.terrain && (typeof n.terrain.tilejson == "string" ? u = n.terrain.tilejson : typeof n.terrain.pmtiles == "string" && (u = `pmtiles://${n.terrain.pmtiles}`), u && (m = n.terrain.hillshading ?? !0, h = n.terrain.exaggeration ?? 0), C = n.terrain.encoding ?? "mapbox");
2391
- let s = JSON.parse(c);
2392
- const R = n.hidePOIs ?? !1;
2393
- if (m || (s = s.filter((a) => a.id !== "hillshader")), R && (s = s.filter((a) => a.id !== "pois")), o) {
2394
- const a = s.filter((l) => l.id === "pois");
2395
- if (a.length) {
2396
- const l = a[0];
2397
- if (l.layout !== void 0) {
2398
- const p = l.layout;
2399
- p["text-field"] !== void 0 && (p["text-field"] = "");
6742
+ let c = "", _ = !1, m = "", g = 0;
6743
+ n.terrain && (typeof n.terrain.tilejson == "string" ? c = n.terrain.tilejson : typeof n.terrain.pmtiles == "string" && (c = `pmtiles://${n.terrain.pmtiles}`), c && (_ = n.terrain.hillshading ?? !0, g = n.terrain.exaggeration ?? 0), m = n.terrain.encoding ?? "mapbox");
6744
+ let p = JSON.parse(d);
6745
+ const C = n.hidePOIs ?? !1;
6746
+ if (_ || (p = p.filter((s) => s.id !== "hillshader")), C && (p = p.filter((s) => s.id !== "pois")), t) {
6747
+ const s = p.filter((a) => a.id === "pois");
6748
+ if (s.length) {
6749
+ const a = s[0];
6750
+ if (a.layout !== void 0) {
6751
+ const u = a.layout;
6752
+ u["text-field"] !== void 0 && (u["text-field"] = "");
2400
6753
  }
2401
6754
  }
2402
- s = s.filter((l) => l.id === "pois" || l.type !== "symbol" ? !0 : !(l.layout !== void 0 && l.layout["text-field"] !== void 0));
6755
+ p = p.filter((a) => a.id === "pois" || a.type !== "symbol" ? !0 : !(a.layout !== void 0 && a.layout["text-field"] !== void 0));
2403
6756
  }
2404
- const t = n.colorEdit ?? {}, _ = t.brightness ?? 0, x = t.hueRotation ?? 0, M = t.saturation ?? 0, K = t.negate ?? !1, B = t.brightnessShift ?? 0, k = t.exposure ?? 0;
2405
- return (_ !== 0 || x !== 0 || M !== 0 || K === !0 || t.multiplyColor !== void 0 || t.mixColor !== void 0 || B !== 0 || t.contrast !== void 0 || k !== 0) && S(s, (a) => {
2406
- let l = f(a);
2407
- if (K && (l = l.negate()), x !== 0 && (l = l.rotate(x)), M !== 0 && (l = l.saturate(M)), _ > 0 ? l = l.lighten(_) : _ < 0 && (l = l.darken(_ * -1)), B !== 0) {
2408
- const y = l.hsl().array();
2409
- y[2] += B * 100, l = f.hsl(...y);
2410
- }
2411
- Array.isArray(t.mixColor) && typeof t.mixColor[0] == "string" && typeof t.mixColor[1] == "number" && t.mixColor[1] !== 0 && (l = l.mix(f(t.mixColor[0]), t.mixColor[1]));
2412
- const p = l.rgb(), G = p.alpha();
2413
- let d = [p.red(), p.green(), p.blue()];
2414
- if (k !== 0 && (d = D(d, k)), Array.isArray(t.contrast) && typeof t.contrast[0] == "number" && typeof t.contrast[1] == "number" && t.contrast[0] !== 0 && (d = $(d, t.contrast[0], t.contrast[1])), Array.isArray(t.multiplyColor) && typeof t.multiplyColor[0] == "string" && typeof t.multiplyColor[1] == "number" && t.multiplyColor[1] !== 0) {
2415
- const y = f(t.multiplyColor[0]);
2416
- d = P(
2417
- d,
2418
- [y.red(), y.green(), y.blue()],
2419
- t.multiplyColor[1]
6757
+ const o = n.colorEdit ?? {}, h = o.brightness ?? 0, k = o.hueRotation ?? 0, M = o.saturation ?? 0, K = o.negate ?? !1, B = o.brightnessShift ?? 0, w = o.exposure ?? 0;
6758
+ return (h !== 0 || k !== 0 || M !== 0 || K === !0 || o.multiplyColor !== void 0 || o.mixColor !== void 0 || B !== 0 || o.contrast !== void 0 || w !== 0) && S(p, (s) => {
6759
+ let a = b(s);
6760
+ if (K && (a = a.negate()), k !== 0 && (a = a.rotate(k)), M !== 0 && (a = a.saturate(M)), h > 0 ? a = a.lighten(h) : h < 0 && (a = a.darken(h * -1)), B !== 0) {
6761
+ const f = a.hsl().array();
6762
+ f[2] += B * 100, a = b.hsl(...f);
6763
+ }
6764
+ Array.isArray(o.mixColor) && typeof o.mixColor[0] == "string" && typeof o.mixColor[1] == "number" && o.mixColor[1] !== 0 && (a = a.mix(b(o.mixColor[0]), o.mixColor[1]));
6765
+ const u = a.rgb(), O = u.alpha();
6766
+ let y = [u.red(), u.green(), u.blue()];
6767
+ if (w !== 0 && (y = $(y, w)), Array.isArray(o.contrast) && typeof o.contrast[0] == "number" && typeof o.contrast[1] == "number" && o.contrast[0] !== 0 && (y = P(y, o.contrast[0], o.contrast[1])), Array.isArray(o.multiplyColor) && typeof o.multiplyColor[0] == "string" && typeof o.multiplyColor[1] == "number" && o.multiplyColor[1] !== 0) {
6768
+ const f = b(o.multiplyColor[0]);
6769
+ y = W(
6770
+ y,
6771
+ [f.red(), f.green(), f.blue()],
6772
+ o.multiplyColor[1]
2420
6773
  );
2421
6774
  }
2422
- const v = f({ r: d[0], g: d[1], b: d[2], alpha: G });
2423
- return a.startsWith("rgba(") || a.startsWith("rgb(") ? v.rgb().toString() : a.startsWith("hsl(") || a.startsWith("hsla(") ? v.hsl().toString() : v.hexa();
6775
+ const z = b({ r: y[0], g: y[1], b: y[2], alpha: O });
6776
+ return s.startsWith("rgba(") || s.startsWith("rgb(") ? z.rgb().toString() : s.startsWith("hsl(") || s.startsWith("hsla(") ? z.hsl().toString() : z.hexa();
2424
6777
  }), {
2425
6778
  version: 8,
2426
- ...n.sprite && !R ? { sprite: n.sprite } : {},
6779
+ ...n.sprite && !C ? { sprite: n.sprite } : {},
2427
6780
  glyphs: n.glyphs,
2428
6781
  sources: {
2429
- [L]: {
6782
+ [E]: {
2430
6783
  type: "vector",
2431
- url: g,
6784
+ url: l,
2432
6785
  attribution: "<a href='https://openstreetmap.org/copyright'>© OpenStreetMap Contributors</a>"
2433
6786
  },
2434
6787
  // Add the terrain source if terrain source is provided and the hillshading
2435
6788
  // or terrain is enabled.
2436
- ...u && (h || m) ? {
2437
- [w]: {
2438
- url: u,
6789
+ ...c && (g || _) ? {
6790
+ [v]: {
6791
+ url: c,
2439
6792
  type: "raster-dem",
2440
- encoding: C
6793
+ encoding: m
2441
6794
  }
2442
6795
  } : {}
2443
6796
  },
2444
- layers: s,
6797
+ layers: p,
2445
6798
  projection: { type: ["interpolate", ["linear"], ["zoom"], 7, "vertical-perspective", 8, "mercator"] },
2446
6799
  // Add the terrain if the terrain source is provided and the exaggeration is superior to 0
2447
- ...u && h ? {
6800
+ ...c && g ? {
2448
6801
  terrain: {
2449
- source: w,
2450
- exaggeration: h
6802
+ source: v,
6803
+ exaggeration: g
2451
6804
  }
2452
6805
  } : {}
2453
6806
  };
2454
6807
  }
6808
+ function on(n, e, i) {
6809
+ const t = i.layers.map((m) => m.id);
6810
+ if (n === e)
6811
+ throw new Error("The provided layers must have different IDs.");
6812
+ const r = t.indexOf(n), d = t.indexOf(e);
6813
+ if (r === -1 || d === -1)
6814
+ throw new Error(`Cannot swap layers ${n} and ${e} as both must exist in the provided style.`);
6815
+ const l = structuredClone(i), c = l.layers[r], _ = l.layers[d];
6816
+ return l.layers.splice(r, 1, _), l.layers.splice(d, 1, c), l;
6817
+ }
6818
+ function ln(n, e, i) {
6819
+ const r = i.layers.map((_) => _.id).indexOf(n);
6820
+ if (r === -1)
6821
+ throw new Error(`The layer with ID ${n} does not exist in the provided style.`);
6822
+ const d = structuredClone(i), l = d.layers[r], c = l.type;
6823
+ switch (l.paint && typeof l.paint == "object" || (l.paint = {}), c) {
6824
+ case "fill":
6825
+ l.paint["fill-opacity"] = e;
6826
+ break;
6827
+ case "line":
6828
+ l.paint["line-opacity"] = e;
6829
+ break;
6830
+ case "symbol":
6831
+ l.paint["icon-opacity"] = e, l.paint["text-opacity"] = e;
6832
+ break;
6833
+ case "circle":
6834
+ l.paint["circle-opacity"] = e, l.paint["circle-stroke-opacity"] = e;
6835
+ break;
6836
+ case "heatmap":
6837
+ l.paint["heatmap-opacity"] = e;
6838
+ break;
6839
+ case "fill-extrusion":
6840
+ l.paint["fill-extrusion-opacity"] = e;
6841
+ break;
6842
+ case "raster":
6843
+ l.paint["raster-opacity"] = e;
6844
+ break;
6845
+ case "hillshade":
6846
+ l.paint["hillshade-exaggeration"] = e;
6847
+ break;
6848
+ case "color-relief":
6849
+ l.paint["color-relief-opacity"] = e;
6850
+ break;
6851
+ case "background":
6852
+ l.paint["background-opacity"] = e;
6853
+ break;
6854
+ }
6855
+ return d;
6856
+ }
2455
6857
  export {
2456
- L as BASEMAPKIT_BASEMAP_SOURCE_ID,
2457
- w as BASEMAPKIT_TERRAIN_SOURCE_ID,
2458
- T as buildStyle,
2459
- X as getStyle,
2460
- V as getStyleList
6858
+ E as BASEMAPKIT_BASEMAP_SOURCE_ID,
6859
+ v as BASEMAPKIT_TERRAIN_SOURCE_ID,
6860
+ G as buildStyle,
6861
+ tn as getStyle,
6862
+ en as getStyleList,
6863
+ ln as setLayerOpacity,
6864
+ on as swapLayers
2461
6865
  };
2462
6866
  //# sourceMappingURL=basemapkit.js.map