basemapkit 0.4.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,9 +1,9 @@
1
1
  import { language_script_pairs as N, get_country_name as j, get_multiline_name as A } from "@protomaps/basemaps";
2
- import m from "color";
2
+ import b from "color";
3
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 v(n, e) {
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
9
  for (let i = 0; i < n.length; i += 1) {
@@ -12,7 +12,7 @@ function v(n, e) {
12
12
  n[i] = e(t);
13
13
  continue;
14
14
  }
15
- v(t, e);
15
+ S(t, e);
16
16
  }
17
17
  else if (typeof n == "object") {
18
18
  const i = n, t = Object.keys(n);
@@ -22,7 +22,7 @@ function v(n, e) {
22
22
  i[r] = e(d);
23
23
  continue;
24
24
  }
25
- v(d, e);
25
+ S(d, e);
26
26
  }
27
27
  }
28
28
  }
@@ -41,11 +41,11 @@ function D(n, e, i = 127) {
41
41
  function P(n, e, i = 127) {
42
42
  return n.map((t) => D(t, e, i));
43
43
  }
44
- function W(n, e, i = 1) {
44
+ function F(n, e, i = 1) {
45
45
  return 255 * (n / 255) * (e / 255) * i + n / 255 * (1 - i) * 255;
46
46
  }
47
- function F(n, e, i = 1) {
48
- return n.map((t, r) => W(n[r], e[r], i));
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
  {
@@ -2281,6 +2281,15 @@ const U = `[
2281
2281
  "layout": {"visibility": "visible"},
2282
2282
  "paint": {"fill-opacity": 0.5, "fill-color": "#000"}
2283
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
+ },
2284
2293
  {
2285
2294
  "id": "parks",
2286
2295
  "type": "fill",
@@ -2412,89 +2421,6 @@ const U = `[
2412
2421
  "line-opacity": 0.35
2413
2422
  }
2414
2423
  },
2415
- {
2416
- "id": "roads_tunnels_other_casing",
2417
- "type": "line",
2418
- "source": "<BMK_BM_SRC>",
2419
- "source-layer": "roads",
2420
- "filter": ["all", ["has", "is_tunnel"], ["in", "kind", "other", "path"]],
2421
- "paint": {
2422
- "line-color": "#e0e0e0",
2423
- "line-gap-width": [
2424
- "interpolate",
2425
- ["exponential", 1.6],
2426
- ["zoom"],
2427
- 14,
2428
- 0,
2429
- 20,
2430
- 7
2431
- ]
2432
- }
2433
- },
2434
- {
2435
- "id": "roads_tunnels_minor_casing",
2436
- "type": "line",
2437
- "source": "<BMK_BM_SRC>",
2438
- "source-layer": "roads",
2439
- "filter": ["all", ["has", "is_tunnel"], ["==", "kind", "minor_road"]],
2440
- "paint": {
2441
- "line-color": "#e0e0e0",
2442
- "line-dasharray": [3, 2],
2443
- "line-gap-width": [
2444
- "interpolate",
2445
- ["exponential", 1.6],
2446
- ["zoom"],
2447
- 11,
2448
- 0,
2449
- 12.5,
2450
- 0.5,
2451
- 15,
2452
- 2,
2453
- 18,
2454
- 11
2455
- ],
2456
- "line-width": [
2457
- "interpolate",
2458
- ["exponential", 1.6],
2459
- ["zoom"],
2460
- 12,
2461
- 0,
2462
- 12.5,
2463
- 1
2464
- ]
2465
- }
2466
- },
2467
- {
2468
- "id": "roads_tunnels_link_casing",
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": "#e0e0e0",
2475
- "line-dasharray": [3, 2],
2476
- "line-gap-width": [
2477
- "interpolate",
2478
- ["exponential", 1.6],
2479
- ["zoom"],
2480
- 13,
2481
- 0,
2482
- 13.5,
2483
- 1,
2484
- 18,
2485
- 11
2486
- ],
2487
- "line-width": [
2488
- "interpolate",
2489
- ["exponential", 1.6],
2490
- ["zoom"],
2491
- 12,
2492
- 0,
2493
- 12.5,
2494
- 1
2495
- ]
2496
- }
2497
- },
2498
2424
  {
2499
2425
  "id": "roads_tunnels_other",
2500
2426
  "type": "line",
@@ -2621,7 +2547,19 @@ const U = `[
2621
2547
  "source-layer": "buildings",
2622
2548
  "filter": ["in", "kind", "building", "building_part"],
2623
2549
  "layout": {"visibility": "visible"},
2624
- "paint": {"fill-opacity": 0.08, "fill-color": "#000"}
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
+ }
2625
2563
  },
2626
2564
  {
2627
2565
  "id": "roads_pier",
@@ -2891,59 +2829,6 @@ const U = `[
2891
2829
  "line-opacity": 0.5
2892
2830
  }
2893
2831
  },
2894
- {
2895
- "id": "roads_bridges_other_casing",
2896
- "type": "line",
2897
- "source": "<BMK_BM_SRC>",
2898
- "source-layer": "roads",
2899
- "minzoom": 12,
2900
- "filter": ["all", ["has", "is_bridge"], ["in", "kind", "other", "path"]],
2901
- "paint": {
2902
- "line-color": "#e0e0e0",
2903
- "line-gap-width": [
2904
- "interpolate",
2905
- ["exponential", 1.6],
2906
- ["zoom"],
2907
- 14,
2908
- 0,
2909
- 20,
2910
- 7
2911
- ]
2912
- }
2913
- },
2914
- {
2915
- "id": "roads_bridges_minor_casing",
2916
- "type": "line",
2917
- "source": "<BMK_BM_SRC>",
2918
- "source-layer": "roads",
2919
- "minzoom": 12,
2920
- "filter": ["all", ["has", "is_bridge"], ["==", "kind", "minor_road"]],
2921
- "paint": {
2922
- "line-color": "#e0e0e0",
2923
- "line-gap-width": [
2924
- "interpolate",
2925
- ["exponential", 1.6],
2926
- ["zoom"],
2927
- 11,
2928
- 0,
2929
- 12.5,
2930
- 0.5,
2931
- 15,
2932
- 2,
2933
- 18,
2934
- 11
2935
- ],
2936
- "line-width": [
2937
- "interpolate",
2938
- ["exponential", 1.6],
2939
- ["zoom"],
2940
- 13,
2941
- 0,
2942
- 13.5,
2943
- 0.8
2944
- ]
2945
- }
2946
- },
2947
2832
  {
2948
2833
  "id": "roads_bridges_other",
2949
2834
  "type": "line",
@@ -3125,8 +3010,8 @@ const U = `[
3125
3010
  "visibility": "visible"
3126
3011
  },
3127
3012
  "paint": {
3128
- "text-color": "rgba(0, 0, 0, 0.75)",
3129
- "text-halo-color": "rgba(255, 255, 255, 0.5)",
3013
+ "text-color": "rgb(0, 0, 0)",
3014
+ "text-halo-color": "rgb(255, 255, 255)",
3130
3015
  "text-halo-width": 1
3131
3016
  }
3132
3017
  },
@@ -3145,9 +3030,7 @@ const U = `[
3145
3030
  "text-transform": "uppercase"
3146
3031
  },
3147
3032
  "paint": {
3148
- "text-color": "rgba(0, 0, 0, 0.7)",
3149
- "text-halo-width": 1,
3150
- "text-halo-color": "rgba(0, 0, 0, 0)"
3033
+ "text-color": "rgba(0, 0, 0, 0.7)"
3151
3034
  }
3152
3035
  },
3153
3036
  {
@@ -3210,8 +3093,8 @@ const U = `[
3210
3093
  "visibility": "visible"
3211
3094
  },
3212
3095
  "paint": {
3213
- "text-color": "rgba(0, 0, 0, 0.75)",
3214
- "text-halo-color": "rgba(255, 255, 255, 0.5)",
3096
+ "text-color": "rgb(0, 0, 0)",
3097
+ "text-halo-color": "rgb(255, 255, 255)",
3215
3098
  "text-halo-width": 1
3216
3099
  }
3217
3100
  },
@@ -3279,15 +3162,15 @@ const U = `[
3279
3162
  "text-font": ["Noto Sans Regular"],
3280
3163
  "text-justify": "auto",
3281
3164
  "text-field": "<LANG>",
3282
- "text-size": ["interpolate", ["linear"], ["zoom"], 17, 11, 19, 14],
3165
+ "text-size": ["interpolate", ["linear"], ["zoom"], 17, 12, 19, 14],
3283
3166
  "text-max-width": 8,
3284
3167
  "text-offset": [1.5, 0],
3285
3168
  "text-variable-anchor": ["left", "right"],
3286
3169
  "visibility": "visible"
3287
3170
  },
3288
3171
  "paint": {
3289
- "text-color": "rgba(0, 0, 0, 0.75)",
3290
- "text-halo-color": "rgba(255, 255, 255, 0.5)",
3172
+ "text-color": "rgb(0, 0, 0)",
3173
+ "text-halo-color": "rgb(255, 255, 255)",
3291
3174
  "text-halo-width": 1.5
3292
3175
  }
3293
3176
  },
@@ -3323,21 +3206,21 @@ const U = `[
3323
3206
  ],
3324
3207
  "text-size": [
3325
3208
  "interpolate",
3326
- ["exponential", 1.2],
3209
+ ["exponential", 2],
3327
3210
  ["zoom"],
3328
3211
  11,
3329
- 8,
3330
- 14,
3212
+ 11,
3331
3213
  14,
3214
+ 16,
3332
3215
  18,
3333
3216
  24
3334
3217
  ],
3335
3218
  "text-transform": "uppercase"
3336
3219
  },
3337
3220
  "paint": {
3338
- "text-color": "rgba(0, 0, 0, 0.75)",
3339
- "text-halo-color": "rgba(255, 255, 255, 0.5)",
3340
- "text-halo-width": 1
3221
+ "text-color": "rgb(0, 0, 0)",
3222
+ "text-halo-color": "rgba(255, 255, 255, 0.9)",
3223
+ "text-halo-width": 1.2
3341
3224
  }
3342
3225
  },
3343
3226
  {
@@ -3356,7 +3239,7 @@ const U = `[
3356
3239
  "text-transform": "uppercase"
3357
3240
  },
3358
3241
  "paint": {
3359
- "text-halo-color": "rgba(0, 0, 0, 0.75)",
3242
+ "text-halo-color": "rgb(0, 0, 0)",
3360
3243
  "text-halo-width": 1,
3361
3244
  "text-color": "#ffffff"
3362
3245
  }
@@ -3498,8 +3381,8 @@ const U = `[
3498
3381
  "visibility": "visible"
3499
3382
  },
3500
3383
  "paint": {
3501
- "text-color": "rgba(0, 0, 0, 0.85)",
3502
- "text-halo-color": "rgba(255, 255, 255, 0.85)",
3384
+ "text-color": "rgb(0, 0, 0)",
3385
+ "text-halo-color": "rgb(255, 255, 255)",
3503
3386
  "text-halo-width": 1
3504
3387
  }
3505
3388
  },
@@ -3568,9 +3451,9 @@ const U = `[
3568
3451
  "text-transform": "none"
3569
3452
  },
3570
3453
  "paint": {
3571
- "text-color": "rgba(0, 0, 0, 0.9)",
3572
- "text-halo-color": "rgba(255, 255, 255, 0.7)",
3573
- "text-halo-width": 1.5
3454
+ "text-color": "rgb(0, 0, 0)",
3455
+ "text-halo-color": "rgb(255, 255, 255)",
3456
+ "text-halo-width": 1.1
3574
3457
  }
3575
3458
  }
3576
3459
  ]`, J = `[
@@ -3589,15 +3472,39 @@ const U = `[
3589
3472
  "layout": {"visibility": "visible"},
3590
3473
  "paint": {"fill-color": "#8fc0db"}
3591
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
+ },
3592
3484
  {
3593
3485
  "id": "parks",
3594
3486
  "type": "fill",
3595
3487
  "source": "<BMK_BM_SRC>",
3596
3488
  "source-layer": "landuse",
3597
- "minzoom": 7,
3489
+ "minzoom": 8,
3598
3490
  "filter": ["all", ["==", "kind", "park"]],
3599
3491
  "layout": {"visibility": "visible"},
3600
- "paint": {"fill-opacity": 0.15, "fill-color": "#000"}
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
+ }
3601
3508
  },
3602
3509
  {
3603
3510
  "id": "military",
@@ -3705,7 +3612,8 @@ const U = `[
3705
3612
  "filter": ["==", "kind_detail", "taxiway"],
3706
3613
  "layout": {"visibility": "visible"},
3707
3614
  "paint": {
3708
- "line-color": "#e9e9ed",
3615
+ "line-opacity": 0.85,
3616
+ "line-color": "#fff",
3709
3617
  "line-width": [
3710
3618
  "interpolate",
3711
3619
  ["exponential", 1.6],
@@ -3732,15 +3640,20 @@ const U = `[
3732
3640
  "line-color": "#8fc0db"
3733
3641
  }
3734
3642
  },
3643
+
3644
+
3645
+
3735
3646
  {
3736
- "id": "roads_tunnels_other_casing",
3647
+ "id": "roads_tunnels_other",
3737
3648
  "type": "line",
3738
3649
  "source": "<BMK_BM_SRC>",
3739
3650
  "source-layer": "roads",
3740
3651
  "filter": ["all", ["has", "is_tunnel"], ["in", "kind", "other", "path"]],
3741
3652
  "paint": {
3742
- "line-color": "#e0e0e0",
3743
- "line-gap-width": [
3653
+ "line-opacity": 0.1,
3654
+ "line-color": "#000",
3655
+ "line-dasharray": [4.5, 0.5],
3656
+ "line-width": [
3744
3657
  "interpolate",
3745
3658
  ["exponential", 1.6],
3746
3659
  ["zoom"],
@@ -3752,15 +3665,15 @@ const U = `[
3752
3665
  }
3753
3666
  },
3754
3667
  {
3755
- "id": "roads_tunnels_minor_casing",
3668
+ "id": "roads_tunnels_minor",
3756
3669
  "type": "line",
3757
3670
  "source": "<BMK_BM_SRC>",
3758
3671
  "source-layer": "roads",
3759
3672
  "filter": ["all", ["has", "is_tunnel"], ["==", "kind", "minor_road"]],
3760
3673
  "paint": {
3761
- "line-color": "#e0e0e0",
3762
- "line-dasharray": [3, 2],
3763
- "line-gap-width": [
3674
+ "line-opacity": 0.1,
3675
+ "line-color": "#000",
3676
+ "line-width": [
3764
3677
  "interpolate",
3765
3678
  ["exponential", 1.6],
3766
3679
  ["zoom"],
@@ -3772,28 +3685,18 @@ const U = `[
3772
3685
  2,
3773
3686
  18,
3774
3687
  11
3775
- ],
3776
- "line-width": [
3777
- "interpolate",
3778
- ["exponential", 1.6],
3779
- ["zoom"],
3780
- 12,
3781
- 0,
3782
- 12.5,
3783
- 1
3784
3688
  ]
3785
3689
  }
3786
3690
  },
3787
3691
  {
3788
- "id": "roads_tunnels_link_casing",
3692
+ "id": "roads_tunnels_link",
3789
3693
  "type": "line",
3790
3694
  "source": "<BMK_BM_SRC>",
3791
3695
  "source-layer": "roads",
3792
3696
  "filter": ["all", ["has", "is_tunnel"], ["has", "is_link"]],
3793
3697
  "paint": {
3794
- "line-color": "#e0e0e0",
3795
- "line-dasharray": [3, 2],
3796
- "line-gap-width": [
3698
+ "line-color": "#000",
3699
+ "line-width": [
3797
3700
  "interpolate",
3798
3701
  ["exponential", 1.6],
3799
3702
  ["zoom"],
@@ -3804,90 +3707,18 @@ const U = `[
3804
3707
  18,
3805
3708
  11
3806
3709
  ],
3807
- "line-width": [
3808
- "interpolate",
3809
- ["exponential", 1.6],
3810
- ["zoom"],
3811
- 12,
3812
- 0,
3813
- 12.5,
3814
- 1
3815
- ]
3710
+ "line-opacity": 0.1
3816
3711
  }
3817
3712
  },
3818
3713
  {
3819
- "id": "roads_tunnels_other",
3714
+ "id": "roads_tunnels_major",
3820
3715
  "type": "line",
3821
3716
  "source": "<BMK_BM_SRC>",
3822
3717
  "source-layer": "roads",
3823
- "filter": ["all", ["has", "is_tunnel"], ["in", "kind", "other", "path"]],
3718
+ "filter": ["all", ["has", "is_tunnel"], ["==", "kind", "major_road"]],
3824
3719
  "paint": {
3825
- "line-color": "#d5d5d5",
3826
- "line-dasharray": [4.5, 0.5],
3827
- "line-width": [
3828
- "interpolate",
3829
- ["exponential", 1.6],
3830
- ["zoom"],
3831
- 14,
3832
- 0,
3833
- 20,
3834
- 7
3835
- ]
3836
- }
3837
- },
3838
- {
3839
- "id": "roads_tunnels_minor",
3840
- "type": "line",
3841
- "source": "<BMK_BM_SRC>",
3842
- "source-layer": "roads",
3843
- "filter": ["all", ["has", "is_tunnel"], ["==", "kind", "minor_road"]],
3844
- "paint": {
3845
- "line-color": "#d5d5d5",
3846
- "line-width": [
3847
- "interpolate",
3848
- ["exponential", 1.6],
3849
- ["zoom"],
3850
- 11,
3851
- 0,
3852
- 12.5,
3853
- 0.5,
3854
- 15,
3855
- 2,
3856
- 18,
3857
- 11
3858
- ]
3859
- }
3860
- },
3861
- {
3862
- "id": "roads_tunnels_link",
3863
- "type": "line",
3864
- "source": "<BMK_BM_SRC>",
3865
- "source-layer": "roads",
3866
- "filter": ["all", ["has", "is_tunnel"], ["has", "is_link"]],
3867
- "paint": {
3868
- "line-color": "#ffffff",
3869
- "line-width": [
3870
- "interpolate",
3871
- ["exponential", 1.6],
3872
- ["zoom"],
3873
- 13,
3874
- 0,
3875
- 13.5,
3876
- 1,
3877
- 18,
3878
- 11
3879
- ],
3880
- "line-opacity": 0.7
3881
- }
3882
- },
3883
- {
3884
- "id": "roads_tunnels_major",
3885
- "type": "line",
3886
- "source": "<BMK_BM_SRC>",
3887
- "source-layer": "roads",
3888
- "filter": ["all", ["has", "is_tunnel"], ["==", "kind", "major_road"]],
3889
- "paint": {
3890
- "line-color": "#d5d5d5",
3720
+ "line-opacity": 0.1,
3721
+ "line-color": "#000",
3891
3722
  "line-width": [
3892
3723
  "interpolate",
3893
3724
  ["exponential", 1.6],
@@ -3930,8 +3761,8 @@ const U = `[
3930
3761
  18,
3931
3762
  15
3932
3763
  ],
3933
- "line-color": "#ffffff",
3934
- "line-opacity": 0.7
3764
+ "line-color": "#000",
3765
+ "line-opacity": 0.1
3935
3766
  }
3936
3767
  },
3937
3768
  {
@@ -3941,7 +3772,19 @@ const U = `[
3941
3772
  "source-layer": "buildings",
3942
3773
  "filter": ["in", "kind", "building", "building_part"],
3943
3774
  "layout": {"visibility": "visible"},
3944
- "paint": {"fill-opacity": 0.08, "fill-color": "#000"}
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
+ }
3945
3788
  },
3946
3789
  {
3947
3790
  "id": "roads_pier",
@@ -3950,7 +3793,8 @@ const U = `[
3950
3793
  "source-layer": "roads",
3951
3794
  "filter": ["==", "kind_detail", "pier"],
3952
3795
  "paint": {
3953
- "line-color": "#e0e0e0",
3796
+ "line-opacity": 0.85,
3797
+ "line-color": "#FFF",
3954
3798
  "line-width": [
3955
3799
  "interpolate",
3956
3800
  ["exponential", 1.6],
@@ -3990,7 +3834,7 @@ const U = `[
3990
3834
  9
3991
3835
  ],
3992
3836
  "line-color": "#ffffff",
3993
- "line-opacity": 0.7
3837
+ "line-opacity": 0.85
3994
3838
  }
3995
3839
  },
3996
3840
  {
@@ -4012,7 +3856,7 @@ const U = `[
4012
3856
  11
4013
3857
  ],
4014
3858
  "line-color": "#ffffff",
4015
- "line-opacity": 0.7
3859
+ "line-opacity": 0.85
4016
3860
  }
4017
3861
  },
4018
3862
  {
@@ -4038,7 +3882,7 @@ const U = `[
4038
3882
  8
4039
3883
  ],
4040
3884
  "line-color": "#ffffff",
4041
- "line-opacity": 0.7
3885
+ "line-opacity": 0.85
4042
3886
  }
4043
3887
  },
4044
3888
  {
@@ -4069,7 +3913,7 @@ const U = `[
4069
3913
  11
4070
3914
  ],
4071
3915
  "line-color": "#ffffff",
4072
- "line-opacity": 0.7
3916
+ "line-opacity": 0.85
4073
3917
  }
4074
3918
  },
4075
3919
  {
@@ -4100,7 +3944,7 @@ const U = `[
4100
3944
  18,
4101
3945
  15
4102
3946
  ],
4103
- "line-opacity": 0.7,
3947
+ "line-opacity": 0.85,
4104
3948
  "line-color": "#ffffff"
4105
3949
  }
4106
3950
  },
@@ -4134,7 +3978,7 @@ const U = `[
4134
3978
  15
4135
3979
  ],
4136
3980
  "line-color": "#ffffff",
4137
- "line-opacity": 0.7
3981
+ "line-opacity": 0.85
4138
3982
  }
4139
3983
  },
4140
3984
  {
@@ -4146,8 +3990,8 @@ const U = `[
4146
3990
  "layout": {"visibility": "visible"},
4147
3991
  "paint": {
4148
3992
  "line-dasharray": [0.3, 0.75],
4149
- "line-opacity": 0.7,
4150
- "line-color": "#ffffff",
3993
+ "line-opacity": 0.2,
3994
+ "line-color": "#000",
4151
3995
  "line-width": [
4152
3996
  "interpolate",
4153
3997
  ["exponential", 1.6],
@@ -4170,7 +4014,6 @@ const U = `[
4170
4014
  "filter": ["<=", "kind_detail", 2],
4171
4015
  "layout": {"visibility": "visible"},
4172
4016
  "paint": {
4173
- "line-opacity": 0.5,
4174
4017
  "line-width": [
4175
4018
  "interpolate",
4176
4019
  ["exponential", 1.6],
@@ -4212,59 +4055,6 @@ const U = `[
4212
4055
  "line-opacity": 0.4
4213
4056
  }
4214
4057
  },
4215
- {
4216
- "id": "roads_bridges_other_casing",
4217
- "type": "line",
4218
- "source": "<BMK_BM_SRC>",
4219
- "source-layer": "roads",
4220
- "minzoom": 12,
4221
- "filter": ["all", ["has", "is_bridge"], ["in", "kind", "other", "path"]],
4222
- "paint": {
4223
- "line-color": "#e0e0e0",
4224
- "line-gap-width": [
4225
- "interpolate",
4226
- ["exponential", 1.6],
4227
- ["zoom"],
4228
- 14,
4229
- 0,
4230
- 20,
4231
- 7
4232
- ]
4233
- }
4234
- },
4235
- {
4236
- "id": "roads_bridges_minor_casing",
4237
- "type": "line",
4238
- "source": "<BMK_BM_SRC>",
4239
- "source-layer": "roads",
4240
- "minzoom": 12,
4241
- "filter": ["all", ["has", "is_bridge"], ["==", "kind", "minor_road"]],
4242
- "paint": {
4243
- "line-color": "#e0e0e0",
4244
- "line-gap-width": [
4245
- "interpolate",
4246
- ["exponential", 1.6],
4247
- ["zoom"],
4248
- 11,
4249
- 0,
4250
- 12.5,
4251
- 0.5,
4252
- 15,
4253
- 2,
4254
- 18,
4255
- 11
4256
- ],
4257
- "line-width": [
4258
- "interpolate",
4259
- ["exponential", 1.6],
4260
- ["zoom"],
4261
- 13,
4262
- 0,
4263
- 13.5,
4264
- 0.8
4265
- ]
4266
- }
4267
- },
4268
4058
  {
4269
4059
  "id": "roads_bridges_other",
4270
4060
  "type": "line",
@@ -4274,7 +4064,8 @@ const U = `[
4274
4064
  "filter": ["all", ["has", "is_bridge"], ["in", "kind", "other", "path"]],
4275
4065
  "layout": {"visibility": "visible"},
4276
4066
  "paint": {
4277
- "line-color": "#ebebeb",
4067
+ "line-opacity": 0.85,
4068
+ "line-color": "#fff",
4278
4069
  "line-dasharray": [2, 1],
4279
4070
  "line-width": [
4280
4071
  "interpolate",
@@ -4295,6 +4086,7 @@ const U = `[
4295
4086
  "minzoom": 12,
4296
4087
  "filter": ["all", ["has", "is_bridge"], ["==", "kind", "minor_road"]],
4297
4088
  "paint": {
4089
+ "line-opacity": 0.85,
4298
4090
  "line-color": "#ffffff",
4299
4091
  "line-width": [
4300
4092
  "interpolate",
@@ -4331,7 +4123,7 @@ const U = `[
4331
4123
  18,
4332
4124
  11
4333
4125
  ],
4334
- "line-opacity": 0.7
4126
+ "line-opacity": 0.85
4335
4127
  }
4336
4128
  },
4337
4129
  {
@@ -4356,7 +4148,7 @@ const U = `[
4356
4148
  18,
4357
4149
  13
4358
4150
  ],
4359
- "line-opacity": 0.7
4151
+ "line-opacity": 0.85
4360
4152
  }
4361
4153
  },
4362
4154
  {
@@ -4411,7 +4203,7 @@ const U = `[
4411
4203
  18,
4412
4204
  15
4413
4205
  ],
4414
- "line-opacity": 0.7
4206
+ "line-opacity": 0.85
4415
4207
  }
4416
4208
  },
4417
4209
  {
@@ -5371,7 +5163,7 @@ const U = `[
5371
5163
  "id": "background",
5372
5164
  "type": "background",
5373
5165
  "layout": {"visibility": "visible"},
5374
- "paint": {"background-color": "#f7f7f7"}
5166
+ "paint": {"background-color": "#f0f0f0"}
5375
5167
  },
5376
5168
  {
5377
5169
  "id": "water",
@@ -5382,6 +5174,15 @@ const U = `[
5382
5174
  "layout": {"visibility": "visible"},
5383
5175
  "paint": {"fill-color": "#202226"}
5384
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
+ },
5385
5186
  {
5386
5187
  "id": "parks",
5387
5188
  "type": "fill",
@@ -5525,109 +5326,6 @@ const U = `[
5525
5326
  "line-color": "#202226"
5526
5327
  }
5527
5328
  },
5528
- {
5529
- "id": "roads_tunnels_other_casing",
5530
- "type": "line",
5531
- "source": "<BMK_BM_SRC>",
5532
- "source-layer": "roads",
5533
- "filter": ["all", ["has", "is_tunnel"], ["in", "kind", "other", "path"]],
5534
- "paint": {
5535
- "line-color": "#e0e0e0",
5536
- "line-gap-width": [
5537
- "interpolate",
5538
- ["exponential", 1.6],
5539
- ["zoom"],
5540
- 14,
5541
- 0,
5542
- 20,
5543
- 7
5544
- ]
5545
- }
5546
- },
5547
- {
5548
- "id": "roads_tunnels_minor_casing",
5549
- "type": "line",
5550
- "source": "<BMK_BM_SRC>",
5551
- "source-layer": "roads",
5552
- "filter": ["all", ["has", "is_tunnel"], ["==", "kind", "minor_road"]],
5553
- "paint": {
5554
- "line-color": "#e0e0e0",
5555
- "line-dasharray": [3, 2],
5556
- "line-gap-width": [
5557
- "interpolate",
5558
- ["exponential", 1.6],
5559
- ["zoom"],
5560
- 11,
5561
- 0,
5562
- 12.5,
5563
- 0.5,
5564
- 15,
5565
- 2,
5566
- 18,
5567
- 11
5568
- ],
5569
- "line-width": [
5570
- "interpolate",
5571
- ["exponential", 1.6],
5572
- ["zoom"],
5573
- 12,
5574
- 0,
5575
- 12.5,
5576
- 1
5577
- ]
5578
- }
5579
- },
5580
- {
5581
- "id": "roads_tunnels_link_casing",
5582
- "type": "line",
5583
- "source": "<BMK_BM_SRC>",
5584
- "source-layer": "roads",
5585
- "filter": ["all", ["has", "is_tunnel"], ["has", "is_link"]],
5586
- "paint": {
5587
- "line-color": "#e0e0e0",
5588
- "line-dasharray": [3, 2],
5589
- "line-gap-width": [
5590
- "interpolate",
5591
- ["exponential", 1.6],
5592
- ["zoom"],
5593
- 13,
5594
- 0,
5595
- 13.5,
5596
- 1,
5597
- 18,
5598
- 11
5599
- ],
5600
- "line-width": [
5601
- "interpolate",
5602
- ["exponential", 1.6],
5603
- ["zoom"],
5604
- 12,
5605
- 0,
5606
- 12.5,
5607
- 1
5608
- ]
5609
- }
5610
- },
5611
- {
5612
- "id": "roads_tunnels_other",
5613
- "type": "line",
5614
- "source": "<BMK_BM_SRC>",
5615
- "source-layer": "roads",
5616
- "filter": ["all", ["has", "is_tunnel"], ["in", "kind", "other", "path"]],
5617
- "paint": {
5618
- "line-color": "#d5d5d5",
5619
- "line-dasharray": [4.5, 0.5],
5620
- "line-width": [
5621
- "interpolate",
5622
- ["exponential", 1.6],
5623
- ["zoom"],
5624
- 14,
5625
- 0,
5626
- 20,
5627
- 7
5628
- ]
5629
- }
5630
- },
5631
5329
  {
5632
5330
  "id": "roads_tunnels_minor",
5633
5331
  "type": "line",
@@ -5734,7 +5432,19 @@ const U = `[
5734
5432
  "source-layer": "buildings",
5735
5433
  "filter": ["in", "kind", "building", "building_part"],
5736
5434
  "layout": {"visibility": "visible"},
5737
- "paint": {"fill-opacity": 0.08, "fill-color": "#000"}
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
+ }
5738
5448
  },
5739
5449
  {
5740
5450
  "id": "roads_pier",
@@ -6004,59 +5714,6 @@ const U = `[
6004
5714
  "line-opacity": 0.4
6005
5715
  }
6006
5716
  },
6007
- {
6008
- "id": "roads_bridges_other_casing",
6009
- "type": "line",
6010
- "source": "<BMK_BM_SRC>",
6011
- "source-layer": "roads",
6012
- "minzoom": 12,
6013
- "filter": ["all", ["has", "is_bridge"], ["in", "kind", "other", "path"]],
6014
- "paint": {
6015
- "line-color": "#e0e0e0",
6016
- "line-gap-width": [
6017
- "interpolate",
6018
- ["exponential", 1.6],
6019
- ["zoom"],
6020
- 14,
6021
- 0,
6022
- 20,
6023
- 7
6024
- ]
6025
- }
6026
- },
6027
- {
6028
- "id": "roads_bridges_minor_casing",
6029
- "type": "line",
6030
- "source": "<BMK_BM_SRC>",
6031
- "source-layer": "roads",
6032
- "minzoom": 12,
6033
- "filter": ["all", ["has", "is_bridge"], ["==", "kind", "minor_road"]],
6034
- "paint": {
6035
- "line-color": "#e0e0e0",
6036
- "line-gap-width": [
6037
- "interpolate",
6038
- ["exponential", 1.6],
6039
- ["zoom"],
6040
- 11,
6041
- 0,
6042
- 12.5,
6043
- 0.5,
6044
- 15,
6045
- 2,
6046
- 18,
6047
- 11
6048
- ],
6049
- "line-width": [
6050
- "interpolate",
6051
- ["exponential", 1.6],
6052
- ["zoom"],
6053
- 13,
6054
- 0,
6055
- 13.5,
6056
- 0.8
6057
- ]
6058
- }
6059
- },
6060
5717
  {
6061
5718
  "id": "roads_bridges_other",
6062
5719
  "type": "line",
@@ -6461,7 +6118,7 @@ const U = `[
6461
6118
  "symbol-sort-key": ["get", "sort_key"],
6462
6119
  "text-field": "<LANG>",
6463
6120
  "text-font": ["Noto Sans Regular"],
6464
- "text-size": ["interpolate", ["linear"], ["zoom"], 3, 11, 7, 16],
6121
+ "text-size": ["interpolate", ["linear"], ["zoom"], 3, 12, 7, 18],
6465
6122
  "text-radial-offset": 0.2,
6466
6123
  "text-anchor": "center",
6467
6124
  "text-transform": "uppercase"
@@ -6538,45 +6195,45 @@ const U = `[
6538
6195
  [
6539
6196
  "case",
6540
6197
  ["<", ["get", "population_rank"], 13],
6541
- 12,
6198
+ 14,
6542
6199
  [">=", ["get", "population_rank"], 13],
6543
- 17,
6200
+ 18,
6544
6201
  0
6545
6202
  ],
6546
6203
  6,
6547
6204
  [
6548
6205
  "case",
6549
6206
  ["<", ["get", "population_rank"], 12],
6550
- 14,
6207
+ 15,
6551
6208
  [">=", ["get", "population_rank"], 12],
6552
- 17,
6209
+ 18,
6553
6210
  0
6554
6211
  ],
6555
6212
  8,
6556
6213
  [
6557
6214
  "case",
6558
6215
  ["<", ["get", "population_rank"], 11],
6559
- 13,
6216
+ 15,
6560
6217
  [">=", ["get", "population_rank"], 11],
6561
- 20,
6218
+ 21,
6562
6219
  0
6563
6220
  ],
6564
6221
  10,
6565
6222
  [
6566
6223
  "case",
6567
6224
  ["<", ["get", "population_rank"], 9],
6568
- 14,
6225
+ 16,
6569
6226
  [">=", ["get", "population_rank"], 9],
6570
- 20,
6227
+ 21,
6571
6228
  0
6572
6229
  ],
6573
6230
  15,
6574
6231
  [
6575
6232
  "case",
6576
6233
  ["<", ["get", "population_rank"], 8],
6577
- 14,
6234
+ 16,
6578
6235
  [">=", ["get", "population_rank"], 8],
6579
- 22,
6236
+ 23,
6580
6237
  0
6581
6238
  ]
6582
6239
  ],
@@ -7035,7 +6692,7 @@ const x = {
7035
6692
  saturation: 0.1
7036
6693
  }
7037
6694
  }
7038
- }, E = "__bmk_bm_src", S = "__bmk_tr_src";
6695
+ }, E = "__bmk_bm_src", v = "__bmk_tr_src";
7039
6696
  function en() {
7040
6697
  const n = [];
7041
6698
  for (const e of Object.keys(x)) {
@@ -7074,7 +6731,7 @@ function G(n) {
7074
6731
  }
7075
6732
  if (!(n.baseStyleName in x))
7076
6733
  throw new Error(`The base style ${n.baseStyleName} does not exist.`);
7077
- const d = x[n.baseStyleName].replaceAll("<BMK_BM_SRC>", E).replaceAll("<BMK_TR_SRC>", S).replaceAll('"<LANG>"', i).replaceAll('"<LANG_COUNTRY>"', e);
6734
+ const d = x[n.baseStyleName].replaceAll("<BMK_BM_SRC>", E).replaceAll("<BMK_TR_SRC>", v).replaceAll('"<LANG>"', i).replaceAll('"<LANG_COUNTRY>"', e);
7078
6735
  let l;
7079
6736
  if (typeof n.tilejson == "string")
7080
6737
  l = n.tilejson;
@@ -7082,12 +6739,12 @@ function G(n) {
7082
6739
  l = `pmtiles://${n.pmtiles}`;
7083
6740
  else
7084
6741
  throw new Error('At least one option of "tilejson" or "pmtiles" must be provided as data source.');
7085
- let p = "", _ = !1, b = "", g = 0;
7086
- n.terrain && (typeof n.terrain.tilejson == "string" ? p = n.terrain.tilejson : typeof n.terrain.pmtiles == "string" && (p = `pmtiles://${n.terrain.pmtiles}`), p && (_ = n.terrain.hillshading ?? !0, g = n.terrain.exaggeration ?? 0), b = n.terrain.encoding ?? "mapbox");
7087
- let c = JSON.parse(d);
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);
7088
6745
  const C = n.hidePOIs ?? !1;
7089
- if (_ || (c = c.filter((s) => s.id !== "hillshader")), C && (c = c.filter((s) => s.id !== "pois")), t) {
7090
- const s = c.filter((a) => a.id === "pois");
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");
7091
6748
  if (s.length) {
7092
6749
  const a = s[0];
7093
6750
  if (a.layout !== void 0) {
@@ -7095,27 +6752,27 @@ function G(n) {
7095
6752
  u["text-field"] !== void 0 && (u["text-field"] = "");
7096
6753
  }
7097
6754
  }
7098
- c = c.filter((a) => a.id === "pois" || a.type !== "symbol" ? !0 : !(a.layout !== void 0 && a.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));
7099
6756
  }
7100
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;
7101
- 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) && v(c, (s) => {
7102
- let a = m(s);
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);
7103
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) {
7104
6761
  const f = a.hsl().array();
7105
- f[2] += B * 100, a = m.hsl(...f);
6762
+ f[2] += B * 100, a = b.hsl(...f);
7106
6763
  }
7107
- Array.isArray(o.mixColor) && typeof o.mixColor[0] == "string" && typeof o.mixColor[1] == "number" && o.mixColor[1] !== 0 && (a = a.mix(m(o.mixColor[0]), o.mixColor[1]));
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]));
7108
6765
  const u = a.rgb(), O = u.alpha();
7109
6766
  let y = [u.red(), u.green(), u.blue()];
7110
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) {
7111
- const f = m(o.multiplyColor[0]);
7112
- y = F(
6768
+ const f = b(o.multiplyColor[0]);
6769
+ y = W(
7113
6770
  y,
7114
6771
  [f.red(), f.green(), f.blue()],
7115
6772
  o.multiplyColor[1]
7116
6773
  );
7117
6774
  }
7118
- const z = m({ r: y[0], g: y[1], b: y[2], alpha: O });
6775
+ const z = b({ r: y[0], g: y[1], b: y[2], alpha: O });
7119
6776
  return s.startsWith("rgba(") || s.startsWith("rgb(") ? z.rgb().toString() : s.startsWith("hsl(") || s.startsWith("hsla(") ? z.hsl().toString() : z.hexa();
7120
6777
  }), {
7121
6778
  version: 8,
@@ -7129,41 +6786,41 @@ function G(n) {
7129
6786
  },
7130
6787
  // Add the terrain source if terrain source is provided and the hillshading
7131
6788
  // or terrain is enabled.
7132
- ...p && (g || _) ? {
7133
- [S]: {
7134
- url: p,
6789
+ ...c && (g || _) ? {
6790
+ [v]: {
6791
+ url: c,
7135
6792
  type: "raster-dem",
7136
- encoding: b
6793
+ encoding: m
7137
6794
  }
7138
6795
  } : {}
7139
6796
  },
7140
- layers: c,
6797
+ layers: p,
7141
6798
  projection: { type: ["interpolate", ["linear"], ["zoom"], 7, "vertical-perspective", 8, "mercator"] },
7142
6799
  // Add the terrain if the terrain source is provided and the exaggeration is superior to 0
7143
- ...p && g ? {
6800
+ ...c && g ? {
7144
6801
  terrain: {
7145
- source: S,
6802
+ source: v,
7146
6803
  exaggeration: g
7147
6804
  }
7148
6805
  } : {}
7149
6806
  };
7150
6807
  }
7151
6808
  function on(n, e, i) {
7152
- const t = i.layers.map((b) => b.id);
6809
+ const t = i.layers.map((m) => m.id);
7153
6810
  if (n === e)
7154
6811
  throw new Error("The provided layers must have different IDs.");
7155
6812
  const r = t.indexOf(n), d = t.indexOf(e);
7156
6813
  if (r === -1 || d === -1)
7157
6814
  throw new Error(`Cannot swap layers ${n} and ${e} as both must exist in the provided style.`);
7158
- const l = structuredClone(i), p = l.layers[r], _ = l.layers[d];
7159
- return l.layers.splice(r, 1, _), l.layers.splice(d, 1, p), l;
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;
7160
6817
  }
7161
6818
  function ln(n, e, i) {
7162
6819
  const r = i.layers.map((_) => _.id).indexOf(n);
7163
6820
  if (r === -1)
7164
6821
  throw new Error(`The layer with ID ${n} does not exist in the provided style.`);
7165
- const d = structuredClone(i), l = d.layers[r], p = l.type;
7166
- switch (l.paint && typeof l.paint == "object" || (l.paint = {}), p) {
6822
+ const d = structuredClone(i), l = d.layers[r], c = l.type;
6823
+ switch (l.paint && typeof l.paint == "object" || (l.paint = {}), c) {
7167
6824
  case "fill":
7168
6825
  l.paint["fill-opacity"] = e;
7169
6826
  break;
@@ -7199,7 +6856,7 @@ function ln(n, e, i) {
7199
6856
  }
7200
6857
  export {
7201
6858
  E as BASEMAPKIT_BASEMAP_SOURCE_ID,
7202
- S as BASEMAPKIT_TERRAIN_SOURCE_ID,
6859
+ v as BASEMAPKIT_TERRAIN_SOURCE_ID,
7203
6860
  G as buildStyle,
7204
6861
  tn as getStyle,
7205
6862
  en as getStyleList,