aviation-chart 2.0.31 → 2.0.32
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.esm.js +38 -9
- package/package.json +1 -1
package/dist/nav-sdk.esm.js
CHANGED
|
@@ -1348,7 +1348,7 @@ const AMM_COLOR_LIGHT = {
|
|
|
1348
1348
|
/** 跑道中心线 */
|
|
1349
1349
|
runwayCenterline: '#ffffff',
|
|
1350
1350
|
/** 停机位引导线(深绿色) */
|
|
1351
|
-
standLine: '#
|
|
1351
|
+
standLine: '#E1E1E5',
|
|
1352
1352
|
/** 跑道入口点(深琥珀色) */
|
|
1353
1353
|
threshold: '#c2410c',
|
|
1354
1354
|
/** 限制区域(深红) */
|
|
@@ -1841,7 +1841,7 @@ function buildAMMLayersLight(sourceId = 'amm', colors = AMM_COLOR_LIGHT) {
|
|
|
1841
1841
|
],
|
|
1842
1842
|
},
|
|
1843
1843
|
"paint": {
|
|
1844
|
-
"text-halo-color": "#
|
|
1844
|
+
"text-halo-color": "#4C4E59",
|
|
1845
1845
|
"text-color": C.standLine,
|
|
1846
1846
|
"text-halo-width": 2
|
|
1847
1847
|
}
|
|
@@ -1980,7 +1980,7 @@ const AMM_COLOR_DARK = {
|
|
|
1980
1980
|
stand: '#34d399',
|
|
1981
1981
|
runwayMarking: '#cbd5e1',
|
|
1982
1982
|
runwayCenterline: '#94a3b8',
|
|
1983
|
-
standLine: '#
|
|
1983
|
+
standLine: '#afafbf',
|
|
1984
1984
|
threshold: '#f97316',
|
|
1985
1985
|
restricted: '#f87171',
|
|
1986
1986
|
hotspot: '#fb923c',
|
|
@@ -2001,7 +2001,7 @@ const AMM_COLOR_NEUTRAL = {
|
|
|
2001
2001
|
stand: '#10b981',
|
|
2002
2002
|
runwayMarking: '#e4e4e7',
|
|
2003
2003
|
runwayCenterline: '#d4d4d8',
|
|
2004
|
-
standLine: '#
|
|
2004
|
+
standLine: '#E1E1E5',
|
|
2005
2005
|
threshold: '#f97316',
|
|
2006
2006
|
restricted: '#f87171',
|
|
2007
2007
|
hotspot: '#fb923c',
|
|
@@ -2040,7 +2040,7 @@ function getChartAMMLayerIds() {
|
|
|
2040
2040
|
}
|
|
2041
2041
|
const TYPEMAP = {
|
|
2042
2042
|
background: ["background"],
|
|
2043
|
-
landLayer: ["landLayer"],
|
|
2043
|
+
landLayer: ["landLayer", "coast"],
|
|
2044
2044
|
boundary: ["boundary"],
|
|
2045
2045
|
ocean: ["ocean_label"],
|
|
2046
2046
|
airspace: ["airspaceLayer", "airspace_label_side_layer", "airspaceLayer_line", "airspace_label_center_layer"],
|
|
@@ -9854,6 +9854,7 @@ const THEME_TOKENS = {
|
|
|
9854
9854
|
light: {
|
|
9855
9855
|
background: '#C8DCE8',
|
|
9856
9856
|
land: '#F2F5F9',
|
|
9857
|
+
coast: "#BCC6D5",
|
|
9857
9858
|
halo: '#ffffff',
|
|
9858
9859
|
boundaryPattern: 'normal:national-border-light',
|
|
9859
9860
|
oceanText: '#33748c',
|
|
@@ -9896,6 +9897,7 @@ const THEME_TOKENS = {
|
|
|
9896
9897
|
dark: {
|
|
9897
9898
|
background: '#000000',
|
|
9898
9899
|
land: '#0A111A',
|
|
9900
|
+
coast: "#2A303C",
|
|
9899
9901
|
halo: '#0f172a',
|
|
9900
9902
|
boundaryPattern: 'normal:national-border-dark',
|
|
9901
9903
|
oceanText: '#5A7A8C',
|
|
@@ -9940,6 +9942,7 @@ const THEME_TOKENS = {
|
|
|
9940
9942
|
background: '#1B2838',
|
|
9941
9943
|
land: '#22303F',
|
|
9942
9944
|
halo: '#16212c',
|
|
9945
|
+
coast: "#2A303C",
|
|
9943
9946
|
boundaryPattern: 'normal:national-border-dusk',
|
|
9944
9947
|
oceanText: '#6E93A8',
|
|
9945
9948
|
airspaceStroke: '#7fb3d5',
|
|
@@ -9984,6 +9987,7 @@ const THEME_TOKENS = {
|
|
|
9984
9987
|
sectional: {
|
|
9985
9988
|
background: '#DCEAEF',
|
|
9986
9989
|
land: '#F7F5EC',
|
|
9990
|
+
coast: "#BCC6D5",
|
|
9987
9991
|
halo: '#F2EFE6',
|
|
9988
9992
|
boundaryPattern: 'normal:national-border',
|
|
9989
9993
|
oceanText: '#3A5A72',
|
|
@@ -10027,6 +10031,7 @@ const THEME_TOKENS = {
|
|
|
10027
10031
|
background: '#C8DCE8',
|
|
10028
10032
|
land: '#F2F5F9',
|
|
10029
10033
|
halo: '#ffffff',
|
|
10034
|
+
coast: "#BCC6D5",
|
|
10030
10035
|
boundaryPattern: 'normal:national-border-light',
|
|
10031
10036
|
oceanText: '#33748c',
|
|
10032
10037
|
airspaceStroke: '#6F7E68',
|
|
@@ -10108,6 +10113,17 @@ function buildLayers(themeId = 'light') {
|
|
|
10108
10113
|
"layout": { "visibility": "visible" },
|
|
10109
10114
|
"paint": { "fill-color": T.land, "fill-opacity": 1 }
|
|
10110
10115
|
},
|
|
10116
|
+
{
|
|
10117
|
+
"id": "coast",
|
|
10118
|
+
"type": "line",
|
|
10119
|
+
"source": "land",
|
|
10120
|
+
"minzoom": 0,
|
|
10121
|
+
"paint": {
|
|
10122
|
+
"line-width": 1,
|
|
10123
|
+
"line-opacity": 1,
|
|
10124
|
+
"line-color": T.coast,
|
|
10125
|
+
}
|
|
10126
|
+
},
|
|
10111
10127
|
{
|
|
10112
10128
|
"id": "boundary", "type": "line", "source": "boundary", "minzoom": 0,
|
|
10113
10129
|
"paint": {
|
|
@@ -10407,6 +10423,7 @@ function buildLayers(themeId = 'light') {
|
|
|
10407
10423
|
'BACKWARD', 'stretch:segment-left',
|
|
10408
10424
|
'stretch:segment-both',
|
|
10409
10425
|
],
|
|
10426
|
+
"icon-pitch-alignment": "map",
|
|
10410
10427
|
"icon-anchor": "center", "symbol-placement": "line", "icon-text-fit": "width", "icon-size": 1,
|
|
10411
10428
|
"text-allow-overlap": false, "icon-allow-overlap": false, "text-optional": false,
|
|
10412
10429
|
"text-anchor": "center", "text-justify": "center", "text-line-height": 1.3, "text-letter-spacing": 0.1,
|
|
@@ -10530,6 +10547,7 @@ function buildLayers(themeId = 'light') {
|
|
|
10530
10547
|
"icon-image": ["case", ["==", ["get", "CODE_TYPE_MIL_OPS"], "MIL"], "airport-mil", ["==", ["get", "CODE_TYPE_MIL_OPS"], "MILEXT"], "airport-milext", "airport-civ"],
|
|
10531
10548
|
"symbol-z-order": "viewport-y",
|
|
10532
10549
|
"text-letter-spacing": 0.05,
|
|
10550
|
+
"icon-pitch-alignment": "map",
|
|
10533
10551
|
'text-field': ['get', 'CODE_ID'],
|
|
10534
10552
|
"text-anchor": "bottom",
|
|
10535
10553
|
"text-justify": "center",
|
|
@@ -10594,6 +10612,7 @@ function buildLayers(themeId = 'light') {
|
|
|
10594
10612
|
],
|
|
10595
10613
|
layout: {
|
|
10596
10614
|
'icon-image': 'runway:runway-strip',
|
|
10615
|
+
"icon-pitch-alignment": "map",
|
|
10597
10616
|
'icon-rotate': ['get', 'RWY_BRG1'],
|
|
10598
10617
|
'icon-rotation-alignment': 'map',
|
|
10599
10618
|
'icon-size': ['interpolate', ['linear'], ['zoom'], 2, 0.3, 9, 0.7, 12, 0.7],
|
|
@@ -10621,6 +10640,7 @@ function buildLayers(themeId = 'light') {
|
|
|
10621
10640
|
layout: {
|
|
10622
10641
|
'icon-image': 'runway:runway-strip',
|
|
10623
10642
|
'icon-rotate': ['get', 'RWY_BRG2'],
|
|
10643
|
+
"icon-pitch-alignment": "map",
|
|
10624
10644
|
'icon-rotation-alignment': 'map',
|
|
10625
10645
|
'icon-size': ['interpolate', ['linear'], ['zoom'], 2, 0.3, 9, 0.7, 12, 0.7],
|
|
10626
10646
|
'icon-allow-overlap': true,
|
|
@@ -10637,6 +10657,7 @@ function buildLayers(themeId = 'light') {
|
|
|
10637
10657
|
'maxzoom': 12,
|
|
10638
10658
|
layout: {
|
|
10639
10659
|
"icon-image": "navig:compass",
|
|
10660
|
+
"icon-pitch-alignment": "map",
|
|
10640
10661
|
"icon-size": {
|
|
10641
10662
|
"base": 2,
|
|
10642
10663
|
"stops": [
|
|
@@ -10671,6 +10692,7 @@ function buildLayers(themeId = 'light') {
|
|
|
10671
10692
|
"icon-rotation-alignment": "map",
|
|
10672
10693
|
"icon-allow-overlap": true,
|
|
10673
10694
|
"icon-image": "navig:compass-arrow",
|
|
10695
|
+
"icon-pitch-alignment": "map",
|
|
10674
10696
|
"icon-rotate": ["to-number", ["get", "VAL_MAG_VAR"], 0],
|
|
10675
10697
|
"icon-size": {
|
|
10676
10698
|
"base": 2,
|
|
@@ -10782,6 +10804,7 @@ function buildLayers(themeId = 'light') {
|
|
|
10782
10804
|
id: 'vor_icon', minzoom: 4, type: 'symbol', source: sourceId, 'source-layer': 'vor',
|
|
10783
10805
|
layout: {
|
|
10784
10806
|
"icon-image": "navig:vordme",
|
|
10807
|
+
"icon-pitch-alignment": "map",
|
|
10785
10808
|
"icon-size": {
|
|
10786
10809
|
"base": 2,
|
|
10787
10810
|
"stops": [
|
|
@@ -10837,14 +10860,15 @@ function buildLayers(themeId = 'light') {
|
|
|
10837
10860
|
id: 'vor_label', type: 'symbol', source: sourceId, 'source-layer': 'vor', minzoom: 5, maxzoom: 8,
|
|
10838
10861
|
layout: {
|
|
10839
10862
|
'text-field': ['get', 'CODE_ID'], 'text-font': ['Frutiger Regular'], 'text-size': 10, 'text-anchor': 'top',
|
|
10840
|
-
'text-offset': [0, 0.
|
|
10863
|
+
'text-offset': [0, 0.5]
|
|
10841
10864
|
},
|
|
10842
10865
|
paint: { 'text-color': T.vor, 'text-halo-color': T.halo, 'text-halo-width': 1 },
|
|
10843
10866
|
},
|
|
10844
10867
|
{
|
|
10845
10868
|
id: 'ndb_icon', type: 'symbol', source: sourceId, minzoom: 4, 'source-layer': 'ndb',
|
|
10846
10869
|
layout: {
|
|
10847
|
-
"icon-image": T.ndbIcon,
|
|
10870
|
+
"icon-image": T.ndbIcon,
|
|
10871
|
+
"icon-pitch-alignment": "map", "icon-size": ["interpolate", ["linear"], ["zoom"], 6, 0.5, 10, 1],
|
|
10848
10872
|
"symbol-z-order": "viewport-y",
|
|
10849
10873
|
"text-font": frutigerBold,
|
|
10850
10874
|
"text-field": ["get", "CODE_ID"],
|
|
@@ -10924,6 +10948,7 @@ function buildLayers(themeId = 'light') {
|
|
|
10924
10948
|
id: 'airline_point', type: 'symbol', source: sourceId, 'source-layer': 'waypoint', minzoom: 6,
|
|
10925
10949
|
layout: {
|
|
10926
10950
|
'icon-image': T.airlinePointIcon,
|
|
10951
|
+
"icon-pitch-alignment": "map",
|
|
10927
10952
|
'icon-size': T.airlinePointIconSize || 0.6,
|
|
10928
10953
|
'icon-allow-overlap': true,
|
|
10929
10954
|
'icon-ignore-placement': true,
|
|
@@ -10948,7 +10973,11 @@ function buildLayers(themeId = 'light') {
|
|
|
10948
10973
|
},
|
|
10949
10974
|
{
|
|
10950
10975
|
id: 'waypoint-off-airway-symbol', type: 'symbol', source: sourceId, 'source-layer': 'waypoint-off-airway', minzoom: 7,
|
|
10951
|
-
layout: {
|
|
10976
|
+
layout: {
|
|
10977
|
+
'icon-image': ['case', ['==', ['get', 'report_type'], 'C'],
|
|
10978
|
+
'designate_point_inway', 'designate_point_notinway'],
|
|
10979
|
+
"icon-pitch-alignment": "map", 'icon-size': 0.6, 'icon-allow-overlap': true, 'icon-ignore-placement': true, 'text-field': ['get', 'CODE_ID'], 'text-font': frutigerBold, '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
|
|
10980
|
+
},
|
|
10952
10981
|
paint: {
|
|
10953
10982
|
'icon-color': T.waypoint, 'text-color': T.waypoint, 'text-halo-color': T.halo, 'text-halo-width': 1,
|
|
10954
10983
|
"icon-opacity": ["interpolate", ["linear"], ["zoom"], 7, 0.5, 12, 1, 15, 0.2],
|
|
@@ -11170,7 +11199,7 @@ class MapSDK {
|
|
|
11170
11199
|
this.geoJSONManager = new GeoJSONManager(this.map, this.performanceManager);
|
|
11171
11200
|
}
|
|
11172
11201
|
async initializeDefaultLayers() {
|
|
11173
|
-
const defaultLayers = ["water", "landLayer", "background"];
|
|
11202
|
+
const defaultLayers = ["water", "landLayer", "background", "coast"];
|
|
11174
11203
|
for (const layerName of defaultLayers) {
|
|
11175
11204
|
await this.addBuiltInLayer(layerName, "0");
|
|
11176
11205
|
}
|