basemapkit 0.5.0 → 0.5.2
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.
- package/.husky/pre-commit +2 -0
- package/dist/basemapkit.d.ts +2 -1
- package/dist/basemapkit.js +580 -86
- package/dist/basemapkit.js.map +1 -1
- package/package.json +11 -5
- package/readme.md +20 -3
package/dist/basemapkit.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { language_script_pairs as N, get_country_name as
|
|
1
|
+
import { language_script_pairs as N, get_country_name as A, get_multiline_name as j } from "@protomaps/basemaps";
|
|
2
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(")));
|
|
@@ -41,11 +41,11 @@ function P(n, e, i = 127) {
|
|
|
41
41
|
function F(n, e, i = 127) {
|
|
42
42
|
return n.map((t) => P(t, e, i));
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function U(n, e, i = 1) {
|
|
45
45
|
return 255 * (n / 255) * (e / 255) * i + n / 255 * (1 - i) * 255;
|
|
46
46
|
}
|
|
47
|
-
function
|
|
48
|
-
return n.map((t, r) =>
|
|
47
|
+
function W(n, e, i = 1) {
|
|
48
|
+
return n.map((t, r) => U(n[r], e[r], i));
|
|
49
49
|
}
|
|
50
50
|
const Y = `[
|
|
51
51
|
{
|
|
@@ -460,8 +460,8 @@ const Y = `[
|
|
|
460
460
|
18,
|
|
461
461
|
30
|
|
462
462
|
],
|
|
463
|
-
"line-color": "rgba(5, 109, 0,
|
|
464
|
-
"line-opacity": {"stops": [[8, 0], [9, 0.
|
|
463
|
+
"line-color": "rgba(5, 109, 0, 1)",
|
|
464
|
+
"line-layer-opacity": {"stops": [[8, 0], [9, 0.1]]}
|
|
465
465
|
}
|
|
466
466
|
},
|
|
467
467
|
{
|
|
@@ -484,8 +484,8 @@ const Y = `[
|
|
|
484
484
|
18,
|
|
485
485
|
5
|
|
486
486
|
],
|
|
487
|
-
"line-color": "rgba(5, 109, 0,
|
|
488
|
-
"line-opacity": {"stops": [[8, 0], [9,
|
|
487
|
+
"line-color": "rgba(5, 109, 0, 1)",
|
|
488
|
+
"line-layer-opacity": {"stops": [[8, 0], [9, 0.2]]}
|
|
489
489
|
}
|
|
490
490
|
},
|
|
491
491
|
{
|
|
@@ -497,7 +497,7 @@ const Y = `[
|
|
|
497
497
|
"layout": {"visibility": "visible"},
|
|
498
498
|
"paint": {
|
|
499
499
|
"line-dasharray": [1, 1, 1, 1, 1, 3, 3, 3, 3, 3, 3, 3],
|
|
500
|
-
"line-opacity": 0.5,
|
|
500
|
+
"line-layer-opacity": 0.5,
|
|
501
501
|
"line-color": "rgba(76, 154, 205, 1)",
|
|
502
502
|
"line-width": [
|
|
503
503
|
"interpolate",
|
|
@@ -1309,7 +1309,7 @@ const Y = `[
|
|
|
1309
1309
|
"layout": {"visibility": "visible"},
|
|
1310
1310
|
"paint": {
|
|
1311
1311
|
"line-dasharray": [0.3, 0.75],
|
|
1312
|
-
"line-opacity": 0.5,
|
|
1312
|
+
"line-layer-opacity": 0.5,
|
|
1313
1313
|
"line-color": "rgba(97, 116, 129, 1)",
|
|
1314
1314
|
"line-width": [
|
|
1315
1315
|
"interpolate",
|
|
@@ -1334,7 +1334,7 @@ const Y = `[
|
|
|
1334
1334
|
"layout": {"visibility": "visible"},
|
|
1335
1335
|
"paint": {
|
|
1336
1336
|
"line-color": "rgba(0, 0, 0, 1)",
|
|
1337
|
-
"line-opacity": 0.1,
|
|
1337
|
+
"line-layer-opacity": 0.1,
|
|
1338
1338
|
"line-width": [
|
|
1339
1339
|
"interpolate",
|
|
1340
1340
|
["exponential", 1.6],
|
|
@@ -1364,7 +1364,7 @@ const Y = `[
|
|
|
1364
1364
|
4,
|
|
1365
1365
|
["literal", [2, 1]]
|
|
1366
1366
|
],
|
|
1367
|
-
"line-opacity": 0.3,
|
|
1367
|
+
"line-layer-opacity": 0.3,
|
|
1368
1368
|
"line-width": [
|
|
1369
1369
|
"interpolate",
|
|
1370
1370
|
["exponential", 1.6],
|
|
@@ -2309,7 +2309,7 @@ const Y = `[
|
|
|
2309
2309
|
"filter": ["all", ["==", "kind", "military"]],
|
|
2310
2310
|
"paint": {
|
|
2311
2311
|
"line-dasharray": [2, 2],
|
|
2312
|
-
"line-opacity": {"stops": [[6, 0.25], [10, 0.5]]},
|
|
2312
|
+
"line-layer-opacity": {"stops": [[6, 0.25], [10, 0.5]]},
|
|
2313
2313
|
"line-width": {"stops": [[6, 1], [10, 2]], "base": 1.6}
|
|
2314
2314
|
}
|
|
2315
2315
|
},
|
|
@@ -2381,7 +2381,7 @@ const Y = `[
|
|
|
2381
2381
|
18,
|
|
2382
2382
|
30
|
|
2383
2383
|
],
|
|
2384
|
-
"line-opacity": 0.3
|
|
2384
|
+
"line-layer-opacity": 0.3
|
|
2385
2385
|
}
|
|
2386
2386
|
},
|
|
2387
2387
|
{
|
|
@@ -2418,7 +2418,7 @@ const Y = `[
|
|
|
2418
2418
|
"paint": {
|
|
2419
2419
|
"line-width": 0.5,
|
|
2420
2420
|
"line-color": "#000000",
|
|
2421
|
-
"line-opacity": 0.35
|
|
2421
|
+
"line-layer-opacity": 0.35
|
|
2422
2422
|
}
|
|
2423
2423
|
},
|
|
2424
2424
|
{
|
|
@@ -2483,7 +2483,7 @@ const Y = `[
|
|
|
2483
2483
|
18,
|
|
2484
2484
|
11
|
|
2485
2485
|
],
|
|
2486
|
-
"line-opacity": 0.3
|
|
2486
|
+
"line-layer-opacity": 0.3
|
|
2487
2487
|
}
|
|
2488
2488
|
},
|
|
2489
2489
|
{
|
|
@@ -2537,7 +2537,7 @@ const Y = `[
|
|
|
2537
2537
|
15
|
|
2538
2538
|
],
|
|
2539
2539
|
"line-color": "#ffffff",
|
|
2540
|
-
"line-opacity": 0.3
|
|
2540
|
+
"line-layer-opacity": 0.3
|
|
2541
2541
|
}
|
|
2542
2542
|
},
|
|
2543
2543
|
{
|
|
@@ -2608,7 +2608,7 @@ const Y = `[
|
|
|
2608
2608
|
9
|
|
2609
2609
|
],
|
|
2610
2610
|
"line-color": "#ffffff",
|
|
2611
|
-
"line-opacity": 0.3
|
|
2611
|
+
"line-layer-opacity": 0.3
|
|
2612
2612
|
}
|
|
2613
2613
|
},
|
|
2614
2614
|
{
|
|
@@ -2630,7 +2630,7 @@ const Y = `[
|
|
|
2630
2630
|
11
|
|
2631
2631
|
],
|
|
2632
2632
|
"line-color": "#ffffff",
|
|
2633
|
-
"line-opacity": 0.3
|
|
2633
|
+
"line-layer-opacity": 0.3
|
|
2634
2634
|
}
|
|
2635
2635
|
},
|
|
2636
2636
|
{
|
|
@@ -2656,7 +2656,7 @@ const Y = `[
|
|
|
2656
2656
|
8
|
|
2657
2657
|
],
|
|
2658
2658
|
"line-color": "#ffffff",
|
|
2659
|
-
"line-opacity": 0.3
|
|
2659
|
+
"line-layer-opacity": 0.3
|
|
2660
2660
|
}
|
|
2661
2661
|
},
|
|
2662
2662
|
{
|
|
@@ -2687,7 +2687,7 @@ const Y = `[
|
|
|
2687
2687
|
11
|
|
2688
2688
|
],
|
|
2689
2689
|
"line-color": "#ffffff",
|
|
2690
|
-
"line-opacity": 0.3
|
|
2690
|
+
"line-layer-opacity": 0.3
|
|
2691
2691
|
}
|
|
2692
2692
|
},
|
|
2693
2693
|
{
|
|
@@ -2718,7 +2718,7 @@ const Y = `[
|
|
|
2718
2718
|
18,
|
|
2719
2719
|
15
|
|
2720
2720
|
],
|
|
2721
|
-
"line-opacity": 0.3,
|
|
2721
|
+
"line-layer-opacity": 0.3,
|
|
2722
2722
|
"line-color": "#ffffff"
|
|
2723
2723
|
}
|
|
2724
2724
|
},
|
|
@@ -2752,7 +2752,7 @@ const Y = `[
|
|
|
2752
2752
|
15
|
|
2753
2753
|
],
|
|
2754
2754
|
"line-color": "#ffffff",
|
|
2755
|
-
"line-opacity": 0.3
|
|
2755
|
+
"line-layer-opacity": 0.3
|
|
2756
2756
|
}
|
|
2757
2757
|
},
|
|
2758
2758
|
{
|
|
@@ -2764,7 +2764,7 @@ const Y = `[
|
|
|
2764
2764
|
"layout": {"visibility": "visible"},
|
|
2765
2765
|
"paint": {
|
|
2766
2766
|
"line-dasharray": [0.3, 0.75],
|
|
2767
|
-
"line-opacity": 0.3,
|
|
2767
|
+
"line-layer-opacity": 0.3,
|
|
2768
2768
|
"line-color": "#ffffff",
|
|
2769
2769
|
"line-width": [
|
|
2770
2770
|
"interpolate",
|
|
@@ -2788,7 +2788,7 @@ const Y = `[
|
|
|
2788
2788
|
"filter": ["<=", "kind_detail", 2],
|
|
2789
2789
|
"layout": {"visibility": "visible"},
|
|
2790
2790
|
"paint": {
|
|
2791
|
-
"line-opacity": 0.5,
|
|
2791
|
+
"line-layer-opacity": 0.5,
|
|
2792
2792
|
"line-width": [
|
|
2793
2793
|
"interpolate",
|
|
2794
2794
|
["exponential", 1.6],
|
|
@@ -2826,7 +2826,7 @@ const Y = `[
|
|
|
2826
2826
|
["literal", [2, 2]]
|
|
2827
2827
|
],
|
|
2828
2828
|
"line-color": "#000000",
|
|
2829
|
-
"line-opacity": 0.5
|
|
2829
|
+
"line-layer-opacity": 0.5
|
|
2830
2830
|
}
|
|
2831
2831
|
},
|
|
2832
2832
|
{
|
|
@@ -2895,7 +2895,7 @@ const Y = `[
|
|
|
2895
2895
|
18,
|
|
2896
2896
|
11
|
|
2897
2897
|
],
|
|
2898
|
-
"line-opacity": 0.3
|
|
2898
|
+
"line-layer-opacity": 0.3
|
|
2899
2899
|
}
|
|
2900
2900
|
},
|
|
2901
2901
|
{
|
|
@@ -2920,7 +2920,7 @@ const Y = `[
|
|
|
2920
2920
|
18,
|
|
2921
2921
|
13
|
|
2922
2922
|
],
|
|
2923
|
-
"line-opacity": 0.3
|
|
2923
|
+
"line-layer-opacity": 0.3
|
|
2924
2924
|
}
|
|
2925
2925
|
},
|
|
2926
2926
|
{
|
|
@@ -2944,7 +2944,7 @@ const Y = `[
|
|
|
2944
2944
|
],
|
|
2945
2945
|
"line-color": "#ffffff",
|
|
2946
2946
|
"line-dasharray": [3, 1.5],
|
|
2947
|
-
"line-opacity": 0.5
|
|
2947
|
+
"line-layer-opacity": 0.5
|
|
2948
2948
|
}
|
|
2949
2949
|
},
|
|
2950
2950
|
{
|
|
@@ -2975,7 +2975,7 @@ const Y = `[
|
|
|
2975
2975
|
18,
|
|
2976
2976
|
15
|
|
2977
2977
|
],
|
|
2978
|
-
"line-opacity": 0.3
|
|
2978
|
+
"line-layer-opacity": 0.3
|
|
2979
2979
|
}
|
|
2980
2980
|
},
|
|
2981
2981
|
{
|
|
@@ -3528,7 +3528,7 @@ const Y = `[
|
|
|
3528
3528
|
"filter": ["all", ["==", "kind", "military"]],
|
|
3529
3529
|
"paint": {
|
|
3530
3530
|
"line-dasharray": [2, 2],
|
|
3531
|
-
"line-opacity": {"stops": [[6, 0.25], [10, 0.5]]},
|
|
3531
|
+
"line-layer-opacity": {"stops": [[6, 0.25], [10, 0.5]]},
|
|
3532
3532
|
"line-width": {"stops": [[6, 1], [10, 2]], "base": 1.6}
|
|
3533
3533
|
}
|
|
3534
3534
|
},
|
|
@@ -3600,7 +3600,7 @@ const Y = `[
|
|
|
3600
3600
|
18,
|
|
3601
3601
|
30
|
|
3602
3602
|
],
|
|
3603
|
-
"line-opacity": 0.7
|
|
3603
|
+
"line-layer-opacity": 0.7
|
|
3604
3604
|
}
|
|
3605
3605
|
},
|
|
3606
3606
|
{
|
|
@@ -3612,7 +3612,7 @@ const Y = `[
|
|
|
3612
3612
|
"filter": ["==", "kind_detail", "taxiway"],
|
|
3613
3613
|
"layout": {"visibility": "visible"},
|
|
3614
3614
|
"paint": {
|
|
3615
|
-
"line-opacity": 0.85,
|
|
3615
|
+
"line-layer-opacity": 0.85,
|
|
3616
3616
|
"line-color": "#fff",
|
|
3617
3617
|
"line-width": [
|
|
3618
3618
|
"interpolate",
|
|
@@ -3650,7 +3650,7 @@ const Y = `[
|
|
|
3650
3650
|
"source-layer": "roads",
|
|
3651
3651
|
"filter": ["all", ["has", "is_tunnel"], ["in", "kind", "other", "path"]],
|
|
3652
3652
|
"paint": {
|
|
3653
|
-
"line-opacity": 0.1,
|
|
3653
|
+
"line-layer-opacity": 0.1,
|
|
3654
3654
|
"line-color": "#000",
|
|
3655
3655
|
"line-dasharray": [4.5, 0.5],
|
|
3656
3656
|
"line-width": [
|
|
@@ -3671,7 +3671,7 @@ const Y = `[
|
|
|
3671
3671
|
"source-layer": "roads",
|
|
3672
3672
|
"filter": ["all", ["has", "is_tunnel"], ["==", "kind", "minor_road"]],
|
|
3673
3673
|
"paint": {
|
|
3674
|
-
"line-opacity": 0.1,
|
|
3674
|
+
"line-layer-opacity": 0.1,
|
|
3675
3675
|
"line-color": "#000",
|
|
3676
3676
|
"line-width": [
|
|
3677
3677
|
"interpolate",
|
|
@@ -3707,7 +3707,7 @@ const Y = `[
|
|
|
3707
3707
|
18,
|
|
3708
3708
|
11
|
|
3709
3709
|
],
|
|
3710
|
-
"line-opacity": 0.1
|
|
3710
|
+
"line-layer-opacity": 0.1
|
|
3711
3711
|
}
|
|
3712
3712
|
},
|
|
3713
3713
|
{
|
|
@@ -3717,7 +3717,7 @@ const Y = `[
|
|
|
3717
3717
|
"source-layer": "roads",
|
|
3718
3718
|
"filter": ["all", ["has", "is_tunnel"], ["==", "kind", "major_road"]],
|
|
3719
3719
|
"paint": {
|
|
3720
|
-
"line-opacity": 0.1,
|
|
3720
|
+
"line-layer-opacity": 0.1,
|
|
3721
3721
|
"line-color": "#000",
|
|
3722
3722
|
"line-width": [
|
|
3723
3723
|
"interpolate",
|
|
@@ -3762,7 +3762,7 @@ const Y = `[
|
|
|
3762
3762
|
15
|
|
3763
3763
|
],
|
|
3764
3764
|
"line-color": "#000",
|
|
3765
|
-
"line-opacity": 0.1
|
|
3765
|
+
"line-layer-opacity": 0.1
|
|
3766
3766
|
}
|
|
3767
3767
|
},
|
|
3768
3768
|
{
|
|
@@ -3793,7 +3793,7 @@ const Y = `[
|
|
|
3793
3793
|
"source-layer": "roads",
|
|
3794
3794
|
"filter": ["==", "kind_detail", "pier"],
|
|
3795
3795
|
"paint": {
|
|
3796
|
-
"line-opacity": 0.85,
|
|
3796
|
+
"line-layer-opacity": 0.85,
|
|
3797
3797
|
"line-color": "#FFF",
|
|
3798
3798
|
"line-width": [
|
|
3799
3799
|
"interpolate",
|
|
@@ -3834,7 +3834,7 @@ const Y = `[
|
|
|
3834
3834
|
9
|
|
3835
3835
|
],
|
|
3836
3836
|
"line-color": "#ffffff",
|
|
3837
|
-
"line-opacity": 0.85
|
|
3837
|
+
"line-layer-opacity": 0.85
|
|
3838
3838
|
}
|
|
3839
3839
|
},
|
|
3840
3840
|
{
|
|
@@ -3856,7 +3856,7 @@ const Y = `[
|
|
|
3856
3856
|
11
|
|
3857
3857
|
],
|
|
3858
3858
|
"line-color": "#ffffff",
|
|
3859
|
-
"line-opacity": 0.85
|
|
3859
|
+
"line-layer-opacity": 0.85
|
|
3860
3860
|
}
|
|
3861
3861
|
},
|
|
3862
3862
|
{
|
|
@@ -3882,7 +3882,7 @@ const Y = `[
|
|
|
3882
3882
|
8
|
|
3883
3883
|
],
|
|
3884
3884
|
"line-color": "#ffffff",
|
|
3885
|
-
"line-opacity": 0.85
|
|
3885
|
+
"line-layer-opacity": 0.85
|
|
3886
3886
|
}
|
|
3887
3887
|
},
|
|
3888
3888
|
{
|
|
@@ -3913,7 +3913,7 @@ const Y = `[
|
|
|
3913
3913
|
11
|
|
3914
3914
|
],
|
|
3915
3915
|
"line-color": "#ffffff",
|
|
3916
|
-
"line-opacity": 0.85
|
|
3916
|
+
"line-layer-opacity": 0.85
|
|
3917
3917
|
}
|
|
3918
3918
|
},
|
|
3919
3919
|
{
|
|
@@ -3944,7 +3944,7 @@ const Y = `[
|
|
|
3944
3944
|
18,
|
|
3945
3945
|
15
|
|
3946
3946
|
],
|
|
3947
|
-
"line-opacity": 0.85,
|
|
3947
|
+
"line-layer-opacity": 0.85,
|
|
3948
3948
|
"line-color": "#ffffff"
|
|
3949
3949
|
}
|
|
3950
3950
|
},
|
|
@@ -3978,7 +3978,7 @@ const Y = `[
|
|
|
3978
3978
|
15
|
|
3979
3979
|
],
|
|
3980
3980
|
"line-color": "#ffffff",
|
|
3981
|
-
"line-opacity": 0.85
|
|
3981
|
+
"line-layer-opacity": 0.85
|
|
3982
3982
|
}
|
|
3983
3983
|
},
|
|
3984
3984
|
{
|
|
@@ -3990,7 +3990,7 @@ const Y = `[
|
|
|
3990
3990
|
"layout": {"visibility": "visible"},
|
|
3991
3991
|
"paint": {
|
|
3992
3992
|
"line-dasharray": [0.3, 0.75],
|
|
3993
|
-
"line-opacity": 0.2,
|
|
3993
|
+
"line-layer-opacity": 0.2,
|
|
3994
3994
|
"line-color": "#000",
|
|
3995
3995
|
"line-width": [
|
|
3996
3996
|
"interpolate",
|
|
@@ -4032,7 +4032,7 @@ const Y = `[
|
|
|
4032
4032
|
7
|
|
4033
4033
|
],
|
|
4034
4034
|
"line-color": "#000",
|
|
4035
|
-
"line-opacity": 0.4
|
|
4035
|
+
"line-layer-opacity": 0.4
|
|
4036
4036
|
}
|
|
4037
4037
|
},
|
|
4038
4038
|
{
|
|
@@ -4052,7 +4052,7 @@ const Y = `[
|
|
|
4052
4052
|
["literal", [2, 2]]
|
|
4053
4053
|
],
|
|
4054
4054
|
"line-color": "#000",
|
|
4055
|
-
"line-opacity": 0.4
|
|
4055
|
+
"line-layer-opacity": 0.4
|
|
4056
4056
|
}
|
|
4057
4057
|
},
|
|
4058
4058
|
{
|
|
@@ -4064,7 +4064,7 @@ const Y = `[
|
|
|
4064
4064
|
"filter": ["all", ["has", "is_bridge"], ["in", "kind", "other", "path"]],
|
|
4065
4065
|
"layout": {"visibility": "visible"},
|
|
4066
4066
|
"paint": {
|
|
4067
|
-
"line-opacity": 0.85,
|
|
4067
|
+
"line-layer-opacity": 0.85,
|
|
4068
4068
|
"line-color": "#fff",
|
|
4069
4069
|
"line-dasharray": [2, 1],
|
|
4070
4070
|
"line-width": [
|
|
@@ -4086,7 +4086,7 @@ const Y = `[
|
|
|
4086
4086
|
"minzoom": 12,
|
|
4087
4087
|
"filter": ["all", ["has", "is_bridge"], ["==", "kind", "minor_road"]],
|
|
4088
4088
|
"paint": {
|
|
4089
|
-
"line-opacity": 0.85,
|
|
4089
|
+
"line-layer-opacity": 0.85,
|
|
4090
4090
|
"line-color": "#ffffff",
|
|
4091
4091
|
"line-width": [
|
|
4092
4092
|
"interpolate",
|
|
@@ -4123,7 +4123,7 @@ const Y = `[
|
|
|
4123
4123
|
18,
|
|
4124
4124
|
11
|
|
4125
4125
|
],
|
|
4126
|
-
"line-opacity": 0.85
|
|
4126
|
+
"line-layer-opacity": 0.85
|
|
4127
4127
|
}
|
|
4128
4128
|
},
|
|
4129
4129
|
{
|
|
@@ -4148,7 +4148,7 @@ const Y = `[
|
|
|
4148
4148
|
18,
|
|
4149
4149
|
13
|
|
4150
4150
|
],
|
|
4151
|
-
"line-opacity": 0.85
|
|
4151
|
+
"line-layer-opacity": 0.85
|
|
4152
4152
|
}
|
|
4153
4153
|
},
|
|
4154
4154
|
{
|
|
@@ -4172,7 +4172,7 @@ const Y = `[
|
|
|
4172
4172
|
],
|
|
4173
4173
|
"line-color": "#ffffff",
|
|
4174
4174
|
"line-dasharray": [3, 1.5],
|
|
4175
|
-
"line-opacity": 0.5
|
|
4175
|
+
"line-layer-opacity": 0.5
|
|
4176
4176
|
}
|
|
4177
4177
|
},
|
|
4178
4178
|
{
|
|
@@ -4203,7 +4203,7 @@ const Y = `[
|
|
|
4203
4203
|
18,
|
|
4204
4204
|
15
|
|
4205
4205
|
],
|
|
4206
|
-
"line-opacity": 0.85
|
|
4206
|
+
"line-layer-opacity": 0.85
|
|
4207
4207
|
}
|
|
4208
4208
|
},
|
|
4209
4209
|
{
|
|
@@ -5215,7 +5215,7 @@ const Y = `[
|
|
|
5215
5215
|
"filter": ["all", ["==", "kind", "military"]],
|
|
5216
5216
|
"paint": {
|
|
5217
5217
|
"line-dasharray": [2, 2],
|
|
5218
|
-
"line-opacity": {"stops": [[6, 0.25], [10, 0.5]]},
|
|
5218
|
+
"line-layer-opacity": {"stops": [[6, 0.25], [10, 0.5]]},
|
|
5219
5219
|
"line-width": {"stops": [[6, 1], [10, 2]], "base": 1.6}
|
|
5220
5220
|
}
|
|
5221
5221
|
},
|
|
@@ -5287,7 +5287,7 @@ const Y = `[
|
|
|
5287
5287
|
18,
|
|
5288
5288
|
30
|
|
5289
5289
|
],
|
|
5290
|
-
"line-opacity": 0.7
|
|
5290
|
+
"line-layer-opacity": 0.7
|
|
5291
5291
|
}
|
|
5292
5292
|
},
|
|
5293
5293
|
{
|
|
@@ -5368,7 +5368,7 @@ const Y = `[
|
|
|
5368
5368
|
18,
|
|
5369
5369
|
11
|
|
5370
5370
|
],
|
|
5371
|
-
"line-opacity": 0.7
|
|
5371
|
+
"line-layer-opacity": 0.7
|
|
5372
5372
|
}
|
|
5373
5373
|
},
|
|
5374
5374
|
{
|
|
@@ -5422,7 +5422,7 @@ const Y = `[
|
|
|
5422
5422
|
15
|
|
5423
5423
|
],
|
|
5424
5424
|
"line-color": "#ffffff",
|
|
5425
|
-
"line-opacity": 0.7
|
|
5425
|
+
"line-layer-opacity": 0.7
|
|
5426
5426
|
}
|
|
5427
5427
|
},
|
|
5428
5428
|
{
|
|
@@ -5493,7 +5493,7 @@ const Y = `[
|
|
|
5493
5493
|
9
|
|
5494
5494
|
],
|
|
5495
5495
|
"line-color": "#ffffff",
|
|
5496
|
-
"line-opacity": 0.7
|
|
5496
|
+
"line-layer-opacity": 0.7
|
|
5497
5497
|
}
|
|
5498
5498
|
},
|
|
5499
5499
|
{
|
|
@@ -5515,7 +5515,7 @@ const Y = `[
|
|
|
5515
5515
|
11
|
|
5516
5516
|
],
|
|
5517
5517
|
"line-color": "#ffffff",
|
|
5518
|
-
"line-opacity": 0.7
|
|
5518
|
+
"line-layer-opacity": 0.7
|
|
5519
5519
|
}
|
|
5520
5520
|
},
|
|
5521
5521
|
{
|
|
@@ -5541,7 +5541,7 @@ const Y = `[
|
|
|
5541
5541
|
8
|
|
5542
5542
|
],
|
|
5543
5543
|
"line-color": "#ffffff",
|
|
5544
|
-
"line-opacity": 0.7
|
|
5544
|
+
"line-layer-opacity": 0.7
|
|
5545
5545
|
}
|
|
5546
5546
|
},
|
|
5547
5547
|
{
|
|
@@ -5572,7 +5572,7 @@ const Y = `[
|
|
|
5572
5572
|
11
|
|
5573
5573
|
],
|
|
5574
5574
|
"line-color": "#ffffff",
|
|
5575
|
-
"line-opacity": 0.7
|
|
5575
|
+
"line-layer-opacity": 0.7
|
|
5576
5576
|
}
|
|
5577
5577
|
},
|
|
5578
5578
|
{
|
|
@@ -5603,7 +5603,7 @@ const Y = `[
|
|
|
5603
5603
|
18,
|
|
5604
5604
|
15
|
|
5605
5605
|
],
|
|
5606
|
-
"line-opacity": 0.7,
|
|
5606
|
+
"line-layer-opacity": 0.7,
|
|
5607
5607
|
"line-color": "#ffffff"
|
|
5608
5608
|
}
|
|
5609
5609
|
},
|
|
@@ -5637,7 +5637,7 @@ const Y = `[
|
|
|
5637
5637
|
15
|
|
5638
5638
|
],
|
|
5639
5639
|
"line-color": "#ffffff",
|
|
5640
|
-
"line-opacity": 0.7
|
|
5640
|
+
"line-layer-opacity": 0.7
|
|
5641
5641
|
}
|
|
5642
5642
|
},
|
|
5643
5643
|
{
|
|
@@ -5649,7 +5649,7 @@ const Y = `[
|
|
|
5649
5649
|
"layout": {"visibility": "visible"},
|
|
5650
5650
|
"paint": {
|
|
5651
5651
|
"line-dasharray": [0.3, 0.75],
|
|
5652
|
-
"line-opacity": 0.7,
|
|
5652
|
+
"line-layer-opacity": 0.7,
|
|
5653
5653
|
"line-color": "#ffffff",
|
|
5654
5654
|
"line-width": [
|
|
5655
5655
|
"interpolate",
|
|
@@ -5691,7 +5691,7 @@ const Y = `[
|
|
|
5691
5691
|
7
|
|
5692
5692
|
],
|
|
5693
5693
|
"line-color": "#000",
|
|
5694
|
-
"line-opacity": 0.4
|
|
5694
|
+
"line-layer-opacity": 0.4
|
|
5695
5695
|
}
|
|
5696
5696
|
},
|
|
5697
5697
|
{
|
|
@@ -5711,7 +5711,7 @@ const Y = `[
|
|
|
5711
5711
|
["literal", [2, 2]]
|
|
5712
5712
|
],
|
|
5713
5713
|
"line-color": "#000",
|
|
5714
|
-
"line-opacity": 0.4
|
|
5714
|
+
"line-layer-opacity": 0.4
|
|
5715
5715
|
}
|
|
5716
5716
|
},
|
|
5717
5717
|
{
|
|
@@ -5780,7 +5780,7 @@ const Y = `[
|
|
|
5780
5780
|
18,
|
|
5781
5781
|
11
|
|
5782
5782
|
],
|
|
5783
|
-
"line-opacity": 0.7
|
|
5783
|
+
"line-layer-opacity": 0.7
|
|
5784
5784
|
}
|
|
5785
5785
|
},
|
|
5786
5786
|
{
|
|
@@ -5805,7 +5805,7 @@ const Y = `[
|
|
|
5805
5805
|
18,
|
|
5806
5806
|
13
|
|
5807
5807
|
],
|
|
5808
|
-
"line-opacity": 0.7
|
|
5808
|
+
"line-layer-opacity": 0.7
|
|
5809
5809
|
}
|
|
5810
5810
|
},
|
|
5811
5811
|
{
|
|
@@ -5829,7 +5829,7 @@ const Y = `[
|
|
|
5829
5829
|
],
|
|
5830
5830
|
"line-color": "#ffffff",
|
|
5831
5831
|
"line-dasharray": [3, 1.5],
|
|
5832
|
-
"line-opacity": 0.5
|
|
5832
|
+
"line-layer-opacity": 0.5
|
|
5833
5833
|
}
|
|
5834
5834
|
},
|
|
5835
5835
|
{
|
|
@@ -5860,7 +5860,7 @@ const Y = `[
|
|
|
5860
5860
|
18,
|
|
5861
5861
|
15
|
|
5862
5862
|
],
|
|
5863
|
-
"line-opacity": 0.7
|
|
5863
|
+
"line-layer-opacity": 0.7
|
|
5864
5864
|
}
|
|
5865
5865
|
},
|
|
5866
5866
|
{
|
|
@@ -6339,6 +6339,499 @@ const Y = `[
|
|
|
6339
6339
|
"text-halo-width": 1.5
|
|
6340
6340
|
}
|
|
6341
6341
|
}
|
|
6342
|
+
]`, V = `[
|
|
6343
|
+
{
|
|
6344
|
+
"id": "background",
|
|
6345
|
+
"type": "background",
|
|
6346
|
+
"layout": {"visibility": "visible"},
|
|
6347
|
+
"paint": {"background-color": "rgba(138, 138, 138, 1)"}
|
|
6348
|
+
},
|
|
6349
|
+
{
|
|
6350
|
+
"id": "water",
|
|
6351
|
+
"type": "fill",
|
|
6352
|
+
"source": "<BMK_BM_SRC>",
|
|
6353
|
+
"source-layer": "water",
|
|
6354
|
+
"filter": ["==", "$type", "Polygon"],
|
|
6355
|
+
"layout": {"visibility": "visible"},
|
|
6356
|
+
"paint": {"fill-color": "#363636"}
|
|
6357
|
+
},
|
|
6358
|
+
{
|
|
6359
|
+
"id": "earth_contour",
|
|
6360
|
+
"type": "line",
|
|
6361
|
+
"source": "<BMK_BM_SRC>",
|
|
6362
|
+
"source-layer": "earth",
|
|
6363
|
+
"layout": {"visibility": "visible"},
|
|
6364
|
+
"paint": {
|
|
6365
|
+
"line-width": [
|
|
6366
|
+
"interpolate",
|
|
6367
|
+
["exponential", 1.6],
|
|
6368
|
+
["zoom"],
|
|
6369
|
+
0, 0.5,
|
|
6370
|
+
2, 1,
|
|
6371
|
+
4, 1.2
|
|
6372
|
+
],
|
|
6373
|
+
"line-color": "#fff",
|
|
6374
|
+
"line-layer-opacity": 0.8
|
|
6375
|
+
}
|
|
6376
|
+
},
|
|
6377
|
+
{
|
|
6378
|
+
"id": "earth",
|
|
6379
|
+
"type": "fill",
|
|
6380
|
+
"source": "<BMK_BM_SRC>",
|
|
6381
|
+
"source-layer": "earth",
|
|
6382
|
+
"paint": {"fill-color": "rgba(138, 138, 138, 1)"}
|
|
6383
|
+
},
|
|
6384
|
+
{
|
|
6385
|
+
"id": "hillshader",
|
|
6386
|
+
"type": "hillshade",
|
|
6387
|
+
"source": "__bmk_tr_src",
|
|
6388
|
+
"layout": {"visibility": "visible"},
|
|
6389
|
+
"paint": {
|
|
6390
|
+
"hillshade-illumination-anchor": "viewport",
|
|
6391
|
+
"hillshade-exaggeration": [
|
|
6392
|
+
"interpolate",
|
|
6393
|
+
["exponential", 1.6],
|
|
6394
|
+
["zoom"],
|
|
6395
|
+
0,
|
|
6396
|
+
0.6,
|
|
6397
|
+
4,
|
|
6398
|
+
0.5,
|
|
6399
|
+
7,
|
|
6400
|
+
0.3,
|
|
6401
|
+
11,
|
|
6402
|
+
0.15
|
|
6403
|
+
],
|
|
6404
|
+
"hillshade-shadow-color": "#000000",
|
|
6405
|
+
"hillshade-highlight-color": "#ffffff",
|
|
6406
|
+
"hillshade-accent-color": "#ffffff",
|
|
6407
|
+
"hillshade-illumination-direction": ["literal", 310]
|
|
6408
|
+
}
|
|
6409
|
+
},
|
|
6410
|
+
{
|
|
6411
|
+
"id": "water_stream",
|
|
6412
|
+
"type": "line",
|
|
6413
|
+
"source": "<BMK_BM_SRC>",
|
|
6414
|
+
"source-layer": "water",
|
|
6415
|
+
"minzoom": 14,
|
|
6416
|
+
"filter": ["in", "kind", "stream"],
|
|
6417
|
+
"layout": {"visibility": "visible"},
|
|
6418
|
+
"paint": {"line-width": 0.5, "line-color": "#202226"}
|
|
6419
|
+
},
|
|
6420
|
+
{
|
|
6421
|
+
"id": "boundaries_country",
|
|
6422
|
+
"type": "line",
|
|
6423
|
+
"source": "<BMK_BM_SRC>",
|
|
6424
|
+
"source-layer": "boundaries",
|
|
6425
|
+
"minzoom": 0,
|
|
6426
|
+
"filter": ["<=", "kind_detail", 2],
|
|
6427
|
+
"layout": {"visibility": "visible"},
|
|
6428
|
+
"paint": {
|
|
6429
|
+
"line-width": [
|
|
6430
|
+
"interpolate",
|
|
6431
|
+
["exponential", 1.6],
|
|
6432
|
+
["zoom"],
|
|
6433
|
+
0,
|
|
6434
|
+
1,
|
|
6435
|
+
3,
|
|
6436
|
+
1,
|
|
6437
|
+
5,
|
|
6438
|
+
1.5,
|
|
6439
|
+
8,
|
|
6440
|
+
2,
|
|
6441
|
+
10,
|
|
6442
|
+
3,
|
|
6443
|
+
15,
|
|
6444
|
+
7
|
|
6445
|
+
],
|
|
6446
|
+
"line-color": "#ffffff",
|
|
6447
|
+
"line-layer-opacity": [
|
|
6448
|
+
"interpolate",
|
|
6449
|
+
["exponential", 1.6],
|
|
6450
|
+
["zoom"],
|
|
6451
|
+
3,
|
|
6452
|
+
0.4,
|
|
6453
|
+
5,
|
|
6454
|
+
0.5,
|
|
6455
|
+
8,
|
|
6456
|
+
0.6
|
|
6457
|
+
]
|
|
6458
|
+
}
|
|
6459
|
+
},
|
|
6460
|
+
{
|
|
6461
|
+
"id": "water_label_ocean",
|
|
6462
|
+
"type": "symbol",
|
|
6463
|
+
"source": "<BMK_BM_SRC>",
|
|
6464
|
+
"source-layer": "water",
|
|
6465
|
+
"filter": ["in", "kind", "sea", "ocean", "bay", "strait", "fjord"],
|
|
6466
|
+
"layout": {
|
|
6467
|
+
"text-font": ["Noto Sans Italic"],
|
|
6468
|
+
"text-field": "<LANG>",
|
|
6469
|
+
"text-size": ["interpolate", ["linear"], ["zoom"], 1, 12, 10, 12],
|
|
6470
|
+
"text-letter-spacing": 0.1,
|
|
6471
|
+
"text-max-width": 9,
|
|
6472
|
+
"text-transform": "uppercase"
|
|
6473
|
+
},
|
|
6474
|
+
"paint": {"text-color": "rgba(255, 255, 255, 0.5)"}
|
|
6475
|
+
},
|
|
6476
|
+
{
|
|
6477
|
+
"id": "earth_label_islands",
|
|
6478
|
+
"type": "symbol",
|
|
6479
|
+
"source": "<BMK_BM_SRC>",
|
|
6480
|
+
"source-layer": "earth",
|
|
6481
|
+
"filter": ["in", "kind", "island"],
|
|
6482
|
+
"layout": {
|
|
6483
|
+
"text-font": ["Noto Sans Italic"],
|
|
6484
|
+
"text-field": "<LANG>",
|
|
6485
|
+
"text-size": 10,
|
|
6486
|
+
"text-letter-spacing": 0.1,
|
|
6487
|
+
"text-max-width": 8
|
|
6488
|
+
},
|
|
6489
|
+
"paint": {
|
|
6490
|
+
"text-color": "rgba(0, 0, 0, 0.85)",
|
|
6491
|
+
"text-halo-color": "rgba(255, 255, 255, 0.85)",
|
|
6492
|
+
"text-halo-width": 1
|
|
6493
|
+
}
|
|
6494
|
+
},
|
|
6495
|
+
{
|
|
6496
|
+
"id": "water_label_lakes",
|
|
6497
|
+
"type": "symbol",
|
|
6498
|
+
"source": "<BMK_BM_SRC>",
|
|
6499
|
+
"source-layer": "water",
|
|
6500
|
+
"filter": ["in", "kind", "lake", "water"],
|
|
6501
|
+
"layout": {
|
|
6502
|
+
"text-font": ["Noto Sans Italic"],
|
|
6503
|
+
"text-field": "<LANG>",
|
|
6504
|
+
"text-size": [
|
|
6505
|
+
"interpolate",
|
|
6506
|
+
["linear"],
|
|
6507
|
+
["zoom"],
|
|
6508
|
+
3,
|
|
6509
|
+
10,
|
|
6510
|
+
6,
|
|
6511
|
+
12,
|
|
6512
|
+
10,
|
|
6513
|
+
12
|
|
6514
|
+
],
|
|
6515
|
+
"text-letter-spacing": 0.1,
|
|
6516
|
+
"text-max-width": 9
|
|
6517
|
+
},
|
|
6518
|
+
"paint": {"text-color": "rgba(255, 255, 255, 0.75)"}
|
|
6519
|
+
},
|
|
6520
|
+
{
|
|
6521
|
+
"id": "pois",
|
|
6522
|
+
"type": "symbol",
|
|
6523
|
+
"source": "<BMK_BM_SRC>",
|
|
6524
|
+
"source-layer": "pois",
|
|
6525
|
+
"filter": [
|
|
6526
|
+
"all",
|
|
6527
|
+
[
|
|
6528
|
+
"in",
|
|
6529
|
+
["get", "kind"],
|
|
6530
|
+
[
|
|
6531
|
+
"literal",
|
|
6532
|
+
[
|
|
6533
|
+
"beach",
|
|
6534
|
+
"forest",
|
|
6535
|
+
"marina",
|
|
6536
|
+
"park",
|
|
6537
|
+
"peak",
|
|
6538
|
+
"zoo",
|
|
6539
|
+
"garden",
|
|
6540
|
+
"aerodrome",
|
|
6541
|
+
"station",
|
|
6542
|
+
"ferry_terminal",
|
|
6543
|
+
"stadium",
|
|
6544
|
+
"university",
|
|
6545
|
+
"library",
|
|
6546
|
+
"school",
|
|
6547
|
+
"animal",
|
|
6548
|
+
"toilet",
|
|
6549
|
+
"drinking_water",
|
|
6550
|
+
"viewpoint",
|
|
6551
|
+
"attraction",
|
|
6552
|
+
"camp_site",
|
|
6553
|
+
"college",
|
|
6554
|
+
"fishing",
|
|
6555
|
+
"golf_course",
|
|
6556
|
+
"hospital",
|
|
6557
|
+
"information",
|
|
6558
|
+
"landmark",
|
|
6559
|
+
"military",
|
|
6560
|
+
"national_park",
|
|
6561
|
+
"nature_reserve",
|
|
6562
|
+
"picnic_site",
|
|
6563
|
+
"picnic_table",
|
|
6564
|
+
"playground",
|
|
6565
|
+
"railway",
|
|
6566
|
+
"townhall",
|
|
6567
|
+
"zoo"
|
|
6568
|
+
]
|
|
6569
|
+
]
|
|
6570
|
+
],
|
|
6571
|
+
[">=", ["zoom"], ["+", ["get", "min_zoom"], -2]]
|
|
6572
|
+
],
|
|
6573
|
+
"layout": {
|
|
6574
|
+
"icon-image": [
|
|
6575
|
+
"match",
|
|
6576
|
+
["get", "kind"],
|
|
6577
|
+
"park",
|
|
6578
|
+
"garden",
|
|
6579
|
+
["get", "kind"]
|
|
6580
|
+
],
|
|
6581
|
+
"text-font": ["Noto Sans Regular"],
|
|
6582
|
+
"text-justify": "auto",
|
|
6583
|
+
"text-field": "<LANG>",
|
|
6584
|
+
"text-size": ["interpolate", ["linear"], ["zoom"], 17, 11, 19, 14],
|
|
6585
|
+
"text-max-width": 8,
|
|
6586
|
+
"text-offset": [1.5, 0],
|
|
6587
|
+
"text-variable-anchor": ["left", "right"],
|
|
6588
|
+
"visibility": "visible"
|
|
6589
|
+
},
|
|
6590
|
+
"paint": {
|
|
6591
|
+
"text-color": "rgba(0, 0, 0, 0.75)",
|
|
6592
|
+
"text-halo-color": "rgba(255, 255, 255, 0.5)",
|
|
6593
|
+
"text-halo-width": 1.5
|
|
6594
|
+
}
|
|
6595
|
+
},
|
|
6596
|
+
{
|
|
6597
|
+
"id": "places_subplace",
|
|
6598
|
+
"type": "symbol",
|
|
6599
|
+
"source": "<BMK_BM_SRC>",
|
|
6600
|
+
"source-layer": "places",
|
|
6601
|
+
"filter": ["==", "kind", "neighbourhood"],
|
|
6602
|
+
"layout": {
|
|
6603
|
+
"symbol-sort-key": [
|
|
6604
|
+
"case",
|
|
6605
|
+
["has", "sort_key"],
|
|
6606
|
+
["get", "sort_key"],
|
|
6607
|
+
["get", "min_zoom"]
|
|
6608
|
+
],
|
|
6609
|
+
"text-field": "<LANG>",
|
|
6610
|
+
"text-font": ["Noto Sans Regular"],
|
|
6611
|
+
"text-max-width": 7,
|
|
6612
|
+
"text-letter-spacing": 0.1,
|
|
6613
|
+
"text-padding": [
|
|
6614
|
+
"interpolate",
|
|
6615
|
+
["linear"],
|
|
6616
|
+
["zoom"],
|
|
6617
|
+
5,
|
|
6618
|
+
2,
|
|
6619
|
+
8,
|
|
6620
|
+
4,
|
|
6621
|
+
12,
|
|
6622
|
+
18,
|
|
6623
|
+
15,
|
|
6624
|
+
20
|
|
6625
|
+
],
|
|
6626
|
+
"text-size": [
|
|
6627
|
+
"interpolate",
|
|
6628
|
+
["exponential", 1.2],
|
|
6629
|
+
["zoom"],
|
|
6630
|
+
11,
|
|
6631
|
+
8,
|
|
6632
|
+
14,
|
|
6633
|
+
14,
|
|
6634
|
+
18,
|
|
6635
|
+
24
|
|
6636
|
+
],
|
|
6637
|
+
"text-transform": "uppercase"
|
|
6638
|
+
},
|
|
6639
|
+
"paint": {
|
|
6640
|
+
"text-color": "rgba(0, 0, 0, 0.75)",
|
|
6641
|
+
"text-halo-color": "rgba(255, 255, 255, 0.5)",
|
|
6642
|
+
"text-halo-width": 1
|
|
6643
|
+
}
|
|
6644
|
+
},
|
|
6645
|
+
{
|
|
6646
|
+
"id": "places_locality_circle",
|
|
6647
|
+
"type": "circle",
|
|
6648
|
+
"source": "<BMK_BM_SRC>",
|
|
6649
|
+
"source-layer": "places",
|
|
6650
|
+
"maxzoom": 8,
|
|
6651
|
+
"filter": ["==", "kind", "locality"],
|
|
6652
|
+
"paint": {
|
|
6653
|
+
"circle-radius": {"stops": [[4, 2.5], [8, 3.5]]},
|
|
6654
|
+
"circle-color": "rgba(255, 255, 255, 0.55)",
|
|
6655
|
+
"circle-stroke-width": 1.75,
|
|
6656
|
+
"circle-stroke-color": "rgba(0, 0, 0, 0.45)"
|
|
6657
|
+
}
|
|
6658
|
+
},
|
|
6659
|
+
{
|
|
6660
|
+
"id": "places_locality",
|
|
6661
|
+
"type": "symbol",
|
|
6662
|
+
"source": "<BMK_BM_SRC>",
|
|
6663
|
+
"source-layer": "places",
|
|
6664
|
+
"filter": ["==", "kind", "locality"],
|
|
6665
|
+
"layout": {
|
|
6666
|
+
"icon-image": ["step", ["zoom"], "townspot", 8, ""],
|
|
6667
|
+
"icon-size": 0.7,
|
|
6668
|
+
"text-field": "<LANG>",
|
|
6669
|
+
"text-font": [
|
|
6670
|
+
"case",
|
|
6671
|
+
["<=", ["get", "min_zoom"], 5],
|
|
6672
|
+
["literal", ["Noto Sans Medium"]],
|
|
6673
|
+
["literal", ["Noto Sans Regular"]]
|
|
6674
|
+
],
|
|
6675
|
+
"symbol-sort-key": [
|
|
6676
|
+
"case",
|
|
6677
|
+
["has", "sort_key"],
|
|
6678
|
+
["get", "sort_key"],
|
|
6679
|
+
["get", "min_zoom"]
|
|
6680
|
+
],
|
|
6681
|
+
"text-padding": [
|
|
6682
|
+
"interpolate",
|
|
6683
|
+
["linear"],
|
|
6684
|
+
["zoom"],
|
|
6685
|
+
5,
|
|
6686
|
+
3,
|
|
6687
|
+
8,
|
|
6688
|
+
7,
|
|
6689
|
+
12,
|
|
6690
|
+
11
|
|
6691
|
+
],
|
|
6692
|
+
"text-size": [
|
|
6693
|
+
"interpolate",
|
|
6694
|
+
["linear"],
|
|
6695
|
+
["zoom"],
|
|
6696
|
+
2,
|
|
6697
|
+
[
|
|
6698
|
+
"case",
|
|
6699
|
+
["<", ["get", "population_rank"], 13],
|
|
6700
|
+
10,
|
|
6701
|
+
[">=", ["get", "population_rank"], 13],
|
|
6702
|
+
15,
|
|
6703
|
+
0
|
|
6704
|
+
],
|
|
6705
|
+
4,
|
|
6706
|
+
[
|
|
6707
|
+
"case",
|
|
6708
|
+
["<", ["get", "population_rank"], 13],
|
|
6709
|
+
14,
|
|
6710
|
+
[">=", ["get", "population_rank"], 13],
|
|
6711
|
+
18,
|
|
6712
|
+
0
|
|
6713
|
+
],
|
|
6714
|
+
6,
|
|
6715
|
+
[
|
|
6716
|
+
"case",
|
|
6717
|
+
["<", ["get", "population_rank"], 12],
|
|
6718
|
+
15,
|
|
6719
|
+
[">=", ["get", "population_rank"], 12],
|
|
6720
|
+
18,
|
|
6721
|
+
0
|
|
6722
|
+
],
|
|
6723
|
+
8,
|
|
6724
|
+
[
|
|
6725
|
+
"case",
|
|
6726
|
+
["<", ["get", "population_rank"], 11],
|
|
6727
|
+
15,
|
|
6728
|
+
[">=", ["get", "population_rank"], 11],
|
|
6729
|
+
21,
|
|
6730
|
+
0
|
|
6731
|
+
],
|
|
6732
|
+
10,
|
|
6733
|
+
[
|
|
6734
|
+
"case",
|
|
6735
|
+
["<", ["get", "population_rank"], 9],
|
|
6736
|
+
16,
|
|
6737
|
+
[">=", ["get", "population_rank"], 9],
|
|
6738
|
+
21,
|
|
6739
|
+
0
|
|
6740
|
+
],
|
|
6741
|
+
15,
|
|
6742
|
+
[
|
|
6743
|
+
"case",
|
|
6744
|
+
["<", ["get", "population_rank"], 8],
|
|
6745
|
+
16,
|
|
6746
|
+
[">=", ["get", "population_rank"], 8],
|
|
6747
|
+
23,
|
|
6748
|
+
0
|
|
6749
|
+
]
|
|
6750
|
+
],
|
|
6751
|
+
"icon-padding": [
|
|
6752
|
+
"interpolate",
|
|
6753
|
+
["linear"],
|
|
6754
|
+
["zoom"],
|
|
6755
|
+
0,
|
|
6756
|
+
0,
|
|
6757
|
+
8,
|
|
6758
|
+
6,
|
|
6759
|
+
10,
|
|
6760
|
+
8,
|
|
6761
|
+
12,
|
|
6762
|
+
6,
|
|
6763
|
+
22,
|
|
6764
|
+
2
|
|
6765
|
+
],
|
|
6766
|
+
"text-justify": "auto",
|
|
6767
|
+
"text-variable-anchor": [
|
|
6768
|
+
"step",
|
|
6769
|
+
["zoom"],
|
|
6770
|
+
["literal", ["bottom", "left", "right", "top"]],
|
|
6771
|
+
8,
|
|
6772
|
+
["literal", ["center"]]
|
|
6773
|
+
],
|
|
6774
|
+
"text-radial-offset": 0.3,
|
|
6775
|
+
"visibility": "visible"
|
|
6776
|
+
},
|
|
6777
|
+
"paint": {
|
|
6778
|
+
"text-color": "rgba(0, 0, 0, 0.85)",
|
|
6779
|
+
"text-halo-color": "rgba(255, 255, 255, 0.85)",
|
|
6780
|
+
"text-halo-width": 1
|
|
6781
|
+
}
|
|
6782
|
+
},
|
|
6783
|
+
{
|
|
6784
|
+
"id": "places_country",
|
|
6785
|
+
"type": "symbol",
|
|
6786
|
+
"source": "<BMK_BM_SRC>",
|
|
6787
|
+
"source-layer": "places",
|
|
6788
|
+
"filter": ["==", "kind", "country"],
|
|
6789
|
+
"layout": {
|
|
6790
|
+
"symbol-sort-key": [
|
|
6791
|
+
"case",
|
|
6792
|
+
["has", "sort_key"],
|
|
6793
|
+
["get", "sort_key"],
|
|
6794
|
+
["get", "min_zoom"]
|
|
6795
|
+
],
|
|
6796
|
+
"text-field": "<LANG_COUNTRY>",
|
|
6797
|
+
"text-font": ["Noto Sans Medium"],
|
|
6798
|
+
"text-size": [
|
|
6799
|
+
"interpolate",
|
|
6800
|
+
["linear"],
|
|
6801
|
+
["zoom"],
|
|
6802
|
+
2,
|
|
6803
|
+
12,
|
|
6804
|
+
4,
|
|
6805
|
+
13,
|
|
6806
|
+
6,
|
|
6807
|
+
18,
|
|
6808
|
+
8,
|
|
6809
|
+
20
|
|
6810
|
+
],
|
|
6811
|
+
"icon-padding": [
|
|
6812
|
+
"interpolate",
|
|
6813
|
+
["linear"],
|
|
6814
|
+
["zoom"],
|
|
6815
|
+
0,
|
|
6816
|
+
2,
|
|
6817
|
+
14,
|
|
6818
|
+
2,
|
|
6819
|
+
16,
|
|
6820
|
+
20,
|
|
6821
|
+
17,
|
|
6822
|
+
2,
|
|
6823
|
+
22,
|
|
6824
|
+
2
|
|
6825
|
+
],
|
|
6826
|
+
"text-transform": "uppercase",
|
|
6827
|
+
"visibility": "visible"
|
|
6828
|
+
},
|
|
6829
|
+
"paint": {
|
|
6830
|
+
"text-color": "rgba(206, 206, 206, 1)",
|
|
6831
|
+
"text-halo-width": 1.2,
|
|
6832
|
+
"text-halo-color": "rgba(50, 50, 50, 1)"
|
|
6833
|
+
}
|
|
6834
|
+
}
|
|
6342
6835
|
]`;
|
|
6343
6836
|
function I(n, e) {
|
|
6344
6837
|
const i = N.filter((t) => t.lang === n);
|
|
@@ -6355,7 +6848,7 @@ function I(n, e) {
|
|
|
6355
6848
|
}
|
|
6356
6849
|
return !0;
|
|
6357
6850
|
}
|
|
6358
|
-
function
|
|
6851
|
+
function X() {
|
|
6359
6852
|
const n = Intl.DateTimeFormat().resolvedOptions().locale.split("-")[0];
|
|
6360
6853
|
return I(n, void 0) ? n : "en";
|
|
6361
6854
|
}
|
|
@@ -6364,7 +6857,8 @@ const x = {
|
|
|
6364
6857
|
bureau: J,
|
|
6365
6858
|
journal: q,
|
|
6366
6859
|
monochrome: Q,
|
|
6367
|
-
spectre: H
|
|
6860
|
+
spectre: H,
|
|
6861
|
+
atmosphere: V
|
|
6368
6862
|
}, R = {
|
|
6369
6863
|
"avenue-pop": {
|
|
6370
6864
|
baseStyle: "avenue",
|
|
@@ -6693,7 +7187,7 @@ const x = {
|
|
|
6693
7187
|
}
|
|
6694
7188
|
}
|
|
6695
7189
|
}, E = "__bmk_bm_src", v = "__bmk_tr_src";
|
|
6696
|
-
function
|
|
7190
|
+
function ln() {
|
|
6697
7191
|
const n = [];
|
|
6698
7192
|
for (const e of Object.keys(x)) {
|
|
6699
7193
|
n.push(e);
|
|
@@ -6702,7 +7196,7 @@ function on() {
|
|
|
6702
7196
|
}
|
|
6703
7197
|
return n;
|
|
6704
7198
|
}
|
|
6705
|
-
function
|
|
7199
|
+
function an(n, e) {
|
|
6706
7200
|
if (n in x)
|
|
6707
7201
|
return G({
|
|
6708
7202
|
...e,
|
|
@@ -6724,10 +7218,10 @@ function G(n) {
|
|
|
6724
7218
|
if (t)
|
|
6725
7219
|
e = '""', i = '""';
|
|
6726
7220
|
else if (typeof n.lang == "string" && I(n.lang, n.script))
|
|
6727
|
-
e = JSON.stringify(
|
|
7221
|
+
e = JSON.stringify(A(n.lang, n.script)), i = JSON.stringify(j(n.lang, n.script));
|
|
6728
7222
|
else {
|
|
6729
|
-
const s =
|
|
6730
|
-
e = JSON.stringify(
|
|
7223
|
+
const s = X();
|
|
7224
|
+
e = JSON.stringify(A(s)), i = JSON.stringify(j(s));
|
|
6731
7225
|
}
|
|
6732
7226
|
if (!(n.baseStyleName in x))
|
|
6733
7227
|
throw new Error(`The base style ${n.baseStyleName} does not exist.`);
|
|
@@ -6740,7 +7234,7 @@ function G(n) {
|
|
|
6740
7234
|
else
|
|
6741
7235
|
throw new Error('At least one option of "tilejson" or "pmtiles" must be provided as data source.');
|
|
6742
7236
|
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 ?? "
|
|
7237
|
+
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 ?? "terrarium");
|
|
6744
7238
|
let p = JSON.parse(d);
|
|
6745
7239
|
const C = n.hidePOIs ?? !1;
|
|
6746
7240
|
if (_ || (p = p.filter((s) => s.id !== "hillshader")), C && (p = p.filter((s) => s.id !== "pois")), t) {
|
|
@@ -6766,7 +7260,7 @@ function G(n) {
|
|
|
6766
7260
|
let y = [u.red(), u.green(), u.blue()];
|
|
6767
7261
|
if (w !== 0 && (y = D(y, w)), Array.isArray(o.contrast) && typeof o.contrast[0] == "number" && typeof o.contrast[1] == "number" && o.contrast[0] !== 0 && (y = F(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
7262
|
const f = b(o.multiplyColor[0]);
|
|
6769
|
-
y =
|
|
7263
|
+
y = W(
|
|
6770
7264
|
y,
|
|
6771
7265
|
[f.red(), f.green(), f.blue()],
|
|
6772
7266
|
o.multiplyColor[1]
|
|
@@ -6805,7 +7299,7 @@ function G(n) {
|
|
|
6805
7299
|
} : {}
|
|
6806
7300
|
};
|
|
6807
7301
|
}
|
|
6808
|
-
function
|
|
7302
|
+
function rn(n, e, i) {
|
|
6809
7303
|
const t = i.layers.map((m) => m.id);
|
|
6810
7304
|
if (n === e)
|
|
6811
7305
|
throw new Error("The provided layers must have different IDs.");
|
|
@@ -6815,7 +7309,7 @@ function an(n, e, i) {
|
|
|
6815
7309
|
const l = structuredClone(i), c = l.layers[r], _ = l.layers[d];
|
|
6816
7310
|
return l.layers.splice(r, 1, _), l.layers.splice(d, 1, c), l;
|
|
6817
7311
|
}
|
|
6818
|
-
function
|
|
7312
|
+
function sn(n, e, i) {
|
|
6819
7313
|
const r = i.layers.map((_) => _.id).indexOf(n);
|
|
6820
7314
|
if (r === -1)
|
|
6821
7315
|
throw new Error(`The layer with ID ${n} does not exist in the provided style.`);
|
|
@@ -6858,9 +7352,9 @@ export {
|
|
|
6858
7352
|
E as BASEMAPKIT_BASEMAP_SOURCE_ID,
|
|
6859
7353
|
v as BASEMAPKIT_TERRAIN_SOURCE_ID,
|
|
6860
7354
|
G as buildStyle,
|
|
6861
|
-
|
|
6862
|
-
|
|
6863
|
-
|
|
6864
|
-
|
|
7355
|
+
an as getStyle,
|
|
7356
|
+
ln as getStyleList,
|
|
7357
|
+
sn as setLayerOpacity,
|
|
7358
|
+
rn as swapLayers
|
|
6865
7359
|
};
|
|
6866
7360
|
//# sourceMappingURL=basemapkit.js.map
|