aviation-chart 0.3.14 → 0.3.17
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/dist/nav-sdk.d.ts +3 -3
- package/dist/nav-sdk.esm.js +43 -27
- package/package.json +1 -1
package/dist/nav-sdk.d.ts
CHANGED
|
@@ -1365,7 +1365,7 @@ declare function buildLayersLight(): ({
|
|
|
1365
1365
|
minzoom: number;
|
|
1366
1366
|
paint: {
|
|
1367
1367
|
"line-width": (string | number | string[])[];
|
|
1368
|
-
"line-opacity": number;
|
|
1368
|
+
"line-opacity": (string | number | string[])[];
|
|
1369
1369
|
"line-pattern": string;
|
|
1370
1370
|
'fill-color'?: never;
|
|
1371
1371
|
'fill-opacity'?: never;
|
|
@@ -1990,7 +1990,7 @@ declare function buildLayersLight(): ({
|
|
|
1990
1990
|
"text-anchor": string;
|
|
1991
1991
|
"text-justify": string;
|
|
1992
1992
|
"text-size": (string | number | string[])[];
|
|
1993
|
-
"text-offset": number[];
|
|
1993
|
+
"text-offset": (string | number | (string | number[])[])[];
|
|
1994
1994
|
"icon-allow-overlap": boolean;
|
|
1995
1995
|
"icon-ignore-placement": boolean;
|
|
1996
1996
|
"text-allow-overlap": boolean;
|
|
@@ -2154,7 +2154,7 @@ declare function buildLayersLight(): ({
|
|
|
2154
2154
|
minzoom: number;
|
|
2155
2155
|
layout: {
|
|
2156
2156
|
"icon-image": string;
|
|
2157
|
-
"icon-size": (string | number |
|
|
2157
|
+
"icon-size": (string | number | string[])[];
|
|
2158
2158
|
"icon-rotate": (string | number | string[])[];
|
|
2159
2159
|
"icon-rotation-alignment": string;
|
|
2160
2160
|
"symbol-z-order": string;
|
package/dist/nav-sdk.esm.js
CHANGED
|
@@ -5146,7 +5146,7 @@ function buildLayersLight() {
|
|
|
5146
5146
|
"id": "boundary",
|
|
5147
5147
|
"type": "line",
|
|
5148
5148
|
"source": "boundary",
|
|
5149
|
-
"minzoom": 0
|
|
5149
|
+
"minzoom": 0,
|
|
5150
5150
|
"paint": {
|
|
5151
5151
|
"line-width": [
|
|
5152
5152
|
"interpolate",
|
|
@@ -5161,7 +5161,19 @@ function buildLayersLight() {
|
|
|
5161
5161
|
7,
|
|
5162
5162
|
4
|
|
5163
5163
|
],
|
|
5164
|
-
"line-opacity":
|
|
5164
|
+
"line-opacity": [
|
|
5165
|
+
"interpolate",
|
|
5166
|
+
[
|
|
5167
|
+
"linear"
|
|
5168
|
+
],
|
|
5169
|
+
[
|
|
5170
|
+
"zoom"
|
|
5171
|
+
],
|
|
5172
|
+
0,
|
|
5173
|
+
1,
|
|
5174
|
+
2,
|
|
5175
|
+
0.5
|
|
5176
|
+
],
|
|
5165
5177
|
"line-pattern": "normal:national-border"
|
|
5166
5178
|
}
|
|
5167
5179
|
},
|
|
@@ -5266,10 +5278,10 @@ function buildLayersLight() {
|
|
|
5266
5278
|
paint: { 'text-color': C.controlledStroke },
|
|
5267
5279
|
},
|
|
5268
5280
|
{
|
|
5269
|
-
id: 'airline', type: 'line', source: sourceId, 'source-layer': 'segment', minzoom:
|
|
5281
|
+
id: 'airline', type: 'line', source: sourceId, 'source-layer': 'segment', minzoom: 6,
|
|
5270
5282
|
paint: {
|
|
5271
5283
|
'line-color': ['case', ['==', ['get', 'HAS_REMARK'], 1], '#E8A020', C.segment],
|
|
5272
|
-
'line-width': ['interpolate', ['linear'], ['zoom'],
|
|
5284
|
+
'line-width': ['interpolate', ['linear'], ['zoom'], 6, 0.2, 8, 0.8],
|
|
5273
5285
|
"line-blur": 0,
|
|
5274
5286
|
"line-opacity":
|
|
5275
5287
|
[
|
|
@@ -5280,9 +5292,9 @@ function buildLayersLight() {
|
|
|
5280
5292
|
[
|
|
5281
5293
|
"zoom"
|
|
5282
5294
|
],
|
|
5283
|
-
5,
|
|
5284
|
-
0.3,
|
|
5285
5295
|
6,
|
|
5296
|
+
0.3,
|
|
5297
|
+
7,
|
|
5286
5298
|
1,
|
|
5287
5299
|
8,
|
|
5288
5300
|
1,
|
|
@@ -5354,7 +5366,7 @@ function buildLayersLight() {
|
|
|
5354
5366
|
},
|
|
5355
5367
|
},
|
|
5356
5368
|
{
|
|
5357
|
-
id: 'airline_radial', type: 'symbol', source: sourceId, 'source-layer': 'segment-radial', minzoom:
|
|
5369
|
+
id: 'airline_radial', type: 'symbol', source: sourceId, 'source-layer': 'segment-radial', minzoom: 13,
|
|
5358
5370
|
layout: {
|
|
5359
5371
|
'text-field': ['concat', ['get', 'bearing'], '°'],
|
|
5360
5372
|
'text-size': 9,
|
|
@@ -5376,8 +5388,13 @@ function buildLayersLight() {
|
|
|
5376
5388
|
'text-field': ['get', 'CODE_ID'],
|
|
5377
5389
|
"text-anchor": "bottom",
|
|
5378
5390
|
"text-justify": "center",
|
|
5379
|
-
"text-size": ["interpolate", ["linear"], ["zoom"], 4, 0, 5, 12],
|
|
5380
|
-
"text-offset": [
|
|
5391
|
+
"text-size": ["interpolate", ["linear"], ["zoom"], 4, 0, 5, 10, 9, 12],
|
|
5392
|
+
"text-offset": [
|
|
5393
|
+
"interpolate", ["linear"], ["zoom"],
|
|
5394
|
+
5, ["literal", [0, -1.0]],
|
|
5395
|
+
9, ["literal", [0, -1.8]],
|
|
5396
|
+
12, ["literal", [0, -2.0]]
|
|
5397
|
+
],
|
|
5381
5398
|
"icon-allow-overlap": true,
|
|
5382
5399
|
"icon-ignore-placement": true,
|
|
5383
5400
|
"text-allow-overlap": true,
|
|
@@ -5500,16 +5517,15 @@ function buildLayersLight() {
|
|
|
5500
5517
|
minzoom: 8,
|
|
5501
5518
|
layout: {
|
|
5502
5519
|
"icon-image": "vor:vor_dial",
|
|
5503
|
-
|
|
5504
|
-
"icon-size": [
|
|
5505
|
-
|
|
5506
|
-
|
|
5507
|
-
|
|
5508
|
-
|
|
5509
|
-
|
|
5510
|
-
|
|
5511
|
-
|
|
5512
|
-
],
|
|
5520
|
+
"icon-size": ["interpolate", ["linear"], ["zoom"], 8, 0.072, 10, 0.072, 11, 0.126, 12, 0.180, 13, 0.234, 14, 0.288, 15, 0.342, 16, 0.396, 17, 0.450, 22, 0.450],
|
|
5521
|
+
// "icon-size": [
|
|
5522
|
+
// "interpolate",
|
|
5523
|
+
// ["exponential", 1.25],
|
|
5524
|
+
// ["zoom"],
|
|
5525
|
+
// 8, 0.28,
|
|
5526
|
+
// 17, 1.7,
|
|
5527
|
+
// 22, 1.7
|
|
5528
|
+
// ],
|
|
5513
5529
|
"icon-rotate": ["to-number", ["get", "VAL_MAG_VAR"], 0],
|
|
5514
5530
|
"icon-rotation-alignment": "map",
|
|
5515
5531
|
"symbol-z-order": "viewport-y",
|
|
@@ -5630,7 +5646,7 @@ function buildLayersLight() {
|
|
|
5630
5646
|
}
|
|
5631
5647
|
},
|
|
5632
5648
|
{
|
|
5633
|
-
id: 'airline_point', type: 'symbol', source: sourceId, 'source-layer': 'waypoint', minzoom:
|
|
5649
|
+
id: 'airline_point', type: 'symbol', source: sourceId, 'source-layer': 'waypoint', minzoom: 6,
|
|
5634
5650
|
layout: {
|
|
5635
5651
|
'icon-image': ['case', ['==', ['get', 'report_type'], 'C'], 'waypoint-compusory', 'waypoint'], 'icon-size': 0.6,
|
|
5636
5652
|
'icon-allow-overlap': true,
|
|
@@ -5656,7 +5672,7 @@ function buildLayersLight() {
|
|
|
5656
5672
|
[
|
|
5657
5673
|
"zoom"
|
|
5658
5674
|
],
|
|
5659
|
-
|
|
5675
|
+
6,
|
|
5660
5676
|
0.5,
|
|
5661
5677
|
12,
|
|
5662
5678
|
1,
|
|
@@ -5749,7 +5765,7 @@ function buildLayersDark() {
|
|
|
5749
5765
|
"id": "boundary",
|
|
5750
5766
|
"type": "line",
|
|
5751
5767
|
"source": "boundary",
|
|
5752
|
-
"minzoom": 0
|
|
5768
|
+
"minzoom": 0,
|
|
5753
5769
|
"paint": {
|
|
5754
5770
|
"line-width": [
|
|
5755
5771
|
"interpolate",
|
|
@@ -5849,10 +5865,10 @@ function buildLayersDark() {
|
|
|
5849
5865
|
paint: { 'text-color': C.controlledStroke, 'text-halo-color': '#0f172a', 'text-halo-width': 1.5 },
|
|
5850
5866
|
},
|
|
5851
5867
|
{
|
|
5852
|
-
id: 'airline', type: 'line', source: sourceId, 'source-layer': 'segment', minzoom:
|
|
5868
|
+
id: 'airline', type: 'line', source: sourceId, 'source-layer': 'segment', minzoom: 6,
|
|
5853
5869
|
paint: {
|
|
5854
5870
|
'line-color': ['case', ['==', ['get', 'HAS_REMARK'], 1], '#fbbf24', C.segment],
|
|
5855
|
-
'line-width': ['interpolate', ['linear'], ['zoom'],
|
|
5871
|
+
'line-width': ['interpolate', ['linear'], ['zoom'], 6, 0.2, 8, 0.8],
|
|
5856
5872
|
"line-blur": 0,
|
|
5857
5873
|
"line-opacity":
|
|
5858
5874
|
[
|
|
@@ -5863,7 +5879,7 @@ function buildLayersDark() {
|
|
|
5863
5879
|
[
|
|
5864
5880
|
"zoom"
|
|
5865
5881
|
],
|
|
5866
|
-
|
|
5882
|
+
6,
|
|
5867
5883
|
0.3,
|
|
5868
5884
|
6,
|
|
5869
5885
|
1,
|
|
@@ -5904,7 +5920,7 @@ function buildLayersDark() {
|
|
|
5904
5920
|
paint: { "icon-color": C.segment },
|
|
5905
5921
|
},
|
|
5906
5922
|
{
|
|
5907
|
-
id: 'airline_radial', type: 'symbol', source: sourceId, 'source-layer': 'segment-radial', minzoom:
|
|
5923
|
+
id: 'airline_radial', type: 'symbol', source: sourceId, 'source-layer': 'segment-radial', minzoom: 13,
|
|
5908
5924
|
layout: { 'text-field': ['concat', ['get', 'bearing'], '°'], 'text-size': 9, 'text-rotate': ['to-number', ['get', 'line_angle'], 0], 'text-rotation-alignment': 'map', 'text-allow-overlap': true, 'text-ignore-placement': true, 'text-offset': [0, -1] },
|
|
5909
5925
|
paint: { 'text-color': C.segment, 'text-halo-color': '#0f172a', 'text-halo-width': 1 },
|
|
5910
5926
|
},
|
|
@@ -6032,7 +6048,7 @@ function buildLayersDark() {
|
|
|
6032
6048
|
paint: { "text-color": C.ndb, "text-halo-color": "#0f172a", "text-halo-width": 1, "icon-color": C.ndb }
|
|
6033
6049
|
},
|
|
6034
6050
|
{
|
|
6035
|
-
id: 'airline_point', type: 'symbol', source: sourceId, 'source-layer': 'waypoint', minzoom:
|
|
6051
|
+
id: 'airline_point', type: 'symbol', source: sourceId, 'source-layer': 'waypoint', minzoom: 6,
|
|
6036
6052
|
layout: { 'icon-image': ['case', ['==', ['get', 'report_type'], 'C'], 'waypoint-compusory', 'waypoint'], 'icon-size': 0.6, 'icon-allow-overlap': true, 'icon-ignore-placement': true, 'text-field': ['get', 'CODE_ID'], 'text-size': 9, 'text-variable-anchor-offset': ['bottom', [0, -0.6], 'top', [0, 0.6], 'right', [-0.6, 0], 'left', [0.6, 0], 'bottom-right', [-0.4, -0.4], 'bottom-left', [0.4, -0.4], 'top-right', [-0.4, 0.4], 'top-left', [0.4, 0.4]], 'text-justify': 'auto', 'text-optional': true },
|
|
6037
6053
|
paint: { 'icon-color': C.waypoint, 'text-color': C.waypoint, 'text-halo-color': '#0f172a', 'text-halo-width': 1 },
|
|
6038
6054
|
},
|