aviation-chart 2.0.30 → 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.
Files changed (2) hide show
  1. package/dist/nav-sdk.esm.js +39 -11
  2. package/package.json +1 -1
@@ -1348,7 +1348,7 @@ const AMM_COLOR_LIGHT = {
1348
1348
  /** 跑道中心线 */
1349
1349
  runwayCenterline: '#ffffff',
1350
1350
  /** 停机位引导线(深绿色) */
1351
- standLine: '#010101',
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": "#fefefe",
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: '#64748b',
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: '#6b7280',
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"],
@@ -7528,10 +7528,9 @@ function getAviationBaseStyle(opts) {
7528
7528
  { id: "normal", url: `${spriteBase}/kyresources/sprite-color` },
7529
7529
  { id: "default", url: `${spriteBase}/kyresources/sprite` },
7530
7530
  { id: "v2", url: `${spriteBase}/kyresources/sprite-v2` },
7531
- { id: "vor", url: `${spriteBase}/kyresources/sprite-vor` },
7532
7531
  { id: "runway", url: `${spriteBase}/kyresources/sprite-runway` },
7533
7532
  { id: "stretch", url: `${spriteBase}/kyresources/sprite-stretch` },
7534
- { id: "navig", url: `${spriteBase}/kyresources/sprite-test` },
7533
+ { id: "navig", url: `${spriteBase}/kyresources/sprite-navig` },
7535
7534
  ],
7536
7535
  sources: {
7537
7536
  land: { type: "geojson", data: LAND_FC },
@@ -9855,6 +9854,7 @@ const THEME_TOKENS = {
9855
9854
  light: {
9856
9855
  background: '#C8DCE8',
9857
9856
  land: '#F2F5F9',
9857
+ coast: "#BCC6D5",
9858
9858
  halo: '#ffffff',
9859
9859
  boundaryPattern: 'normal:national-border-light',
9860
9860
  oceanText: '#33748c',
@@ -9897,6 +9897,7 @@ const THEME_TOKENS = {
9897
9897
  dark: {
9898
9898
  background: '#000000',
9899
9899
  land: '#0A111A',
9900
+ coast: "#2A303C",
9900
9901
  halo: '#0f172a',
9901
9902
  boundaryPattern: 'normal:national-border-dark',
9902
9903
  oceanText: '#5A7A8C',
@@ -9941,6 +9942,7 @@ const THEME_TOKENS = {
9941
9942
  background: '#1B2838',
9942
9943
  land: '#22303F',
9943
9944
  halo: '#16212c',
9945
+ coast: "#2A303C",
9944
9946
  boundaryPattern: 'normal:national-border-dusk',
9945
9947
  oceanText: '#6E93A8',
9946
9948
  airspaceStroke: '#7fb3d5',
@@ -9985,6 +9987,7 @@ const THEME_TOKENS = {
9985
9987
  sectional: {
9986
9988
  background: '#DCEAEF',
9987
9989
  land: '#F7F5EC',
9990
+ coast: "#BCC6D5",
9988
9991
  halo: '#F2EFE6',
9989
9992
  boundaryPattern: 'normal:national-border',
9990
9993
  oceanText: '#3A5A72',
@@ -10028,6 +10031,7 @@ const THEME_TOKENS = {
10028
10031
  background: '#C8DCE8',
10029
10032
  land: '#F2F5F9',
10030
10033
  halo: '#ffffff',
10034
+ coast: "#BCC6D5",
10031
10035
  boundaryPattern: 'normal:national-border-light',
10032
10036
  oceanText: '#33748c',
10033
10037
  airspaceStroke: '#6F7E68',
@@ -10109,6 +10113,17 @@ function buildLayers(themeId = 'light') {
10109
10113
  "layout": { "visibility": "visible" },
10110
10114
  "paint": { "fill-color": T.land, "fill-opacity": 1 }
10111
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
+ },
10112
10127
  {
10113
10128
  "id": "boundary", "type": "line", "source": "boundary", "minzoom": 0,
10114
10129
  "paint": {
@@ -10408,6 +10423,7 @@ function buildLayers(themeId = 'light') {
10408
10423
  'BACKWARD', 'stretch:segment-left',
10409
10424
  'stretch:segment-both',
10410
10425
  ],
10426
+ "icon-pitch-alignment": "map",
10411
10427
  "icon-anchor": "center", "symbol-placement": "line", "icon-text-fit": "width", "icon-size": 1,
10412
10428
  "text-allow-overlap": false, "icon-allow-overlap": false, "text-optional": false,
10413
10429
  "text-anchor": "center", "text-justify": "center", "text-line-height": 1.3, "text-letter-spacing": 0.1,
@@ -10531,6 +10547,7 @@ function buildLayers(themeId = 'light') {
10531
10547
  "icon-image": ["case", ["==", ["get", "CODE_TYPE_MIL_OPS"], "MIL"], "airport-mil", ["==", ["get", "CODE_TYPE_MIL_OPS"], "MILEXT"], "airport-milext", "airport-civ"],
10532
10548
  "symbol-z-order": "viewport-y",
10533
10549
  "text-letter-spacing": 0.05,
10550
+ "icon-pitch-alignment": "map",
10534
10551
  'text-field': ['get', 'CODE_ID'],
10535
10552
  "text-anchor": "bottom",
10536
10553
  "text-justify": "center",
@@ -10595,6 +10612,7 @@ function buildLayers(themeId = 'light') {
10595
10612
  ],
10596
10613
  layout: {
10597
10614
  'icon-image': 'runway:runway-strip',
10615
+ "icon-pitch-alignment": "map",
10598
10616
  'icon-rotate': ['get', 'RWY_BRG1'],
10599
10617
  'icon-rotation-alignment': 'map',
10600
10618
  'icon-size': ['interpolate', ['linear'], ['zoom'], 2, 0.3, 9, 0.7, 12, 0.7],
@@ -10622,6 +10640,7 @@ function buildLayers(themeId = 'light') {
10622
10640
  layout: {
10623
10641
  'icon-image': 'runway:runway-strip',
10624
10642
  'icon-rotate': ['get', 'RWY_BRG2'],
10643
+ "icon-pitch-alignment": "map",
10625
10644
  'icon-rotation-alignment': 'map',
10626
10645
  'icon-size': ['interpolate', ['linear'], ['zoom'], 2, 0.3, 9, 0.7, 12, 0.7],
10627
10646
  'icon-allow-overlap': true,
@@ -10638,6 +10657,7 @@ function buildLayers(themeId = 'light') {
10638
10657
  'maxzoom': 12,
10639
10658
  layout: {
10640
10659
  "icon-image": "navig:compass",
10660
+ "icon-pitch-alignment": "map",
10641
10661
  "icon-size": {
10642
10662
  "base": 2,
10643
10663
  "stops": [
@@ -10672,6 +10692,7 @@ function buildLayers(themeId = 'light') {
10672
10692
  "icon-rotation-alignment": "map",
10673
10693
  "icon-allow-overlap": true,
10674
10694
  "icon-image": "navig:compass-arrow",
10695
+ "icon-pitch-alignment": "map",
10675
10696
  "icon-rotate": ["to-number", ["get", "VAL_MAG_VAR"], 0],
10676
10697
  "icon-size": {
10677
10698
  "base": 2,
@@ -10783,6 +10804,7 @@ function buildLayers(themeId = 'light') {
10783
10804
  id: 'vor_icon', minzoom: 4, type: 'symbol', source: sourceId, 'source-layer': 'vor',
10784
10805
  layout: {
10785
10806
  "icon-image": "navig:vordme",
10807
+ "icon-pitch-alignment": "map",
10786
10808
  "icon-size": {
10787
10809
  "base": 2,
10788
10810
  "stops": [
@@ -10838,14 +10860,15 @@ function buildLayers(themeId = 'light') {
10838
10860
  id: 'vor_label', type: 'symbol', source: sourceId, 'source-layer': 'vor', minzoom: 5, maxzoom: 8,
10839
10861
  layout: {
10840
10862
  'text-field': ['get', 'CODE_ID'], 'text-font': ['Frutiger Regular'], 'text-size': 10, 'text-anchor': 'top',
10841
- 'text-offset': [0, 0.8]
10863
+ 'text-offset': [0, 0.5]
10842
10864
  },
10843
10865
  paint: { 'text-color': T.vor, 'text-halo-color': T.halo, 'text-halo-width': 1 },
10844
10866
  },
10845
10867
  {
10846
10868
  id: 'ndb_icon', type: 'symbol', source: sourceId, minzoom: 4, 'source-layer': 'ndb',
10847
10869
  layout: {
10848
- "icon-image": T.ndbIcon, "icon-size": ["interpolate", ["linear"], ["zoom"], 6, 0.5, 10, 1],
10870
+ "icon-image": T.ndbIcon,
10871
+ "icon-pitch-alignment": "map", "icon-size": ["interpolate", ["linear"], ["zoom"], 6, 0.5, 10, 1],
10849
10872
  "symbol-z-order": "viewport-y",
10850
10873
  "text-font": frutigerBold,
10851
10874
  "text-field": ["get", "CODE_ID"],
@@ -10925,6 +10948,7 @@ function buildLayers(themeId = 'light') {
10925
10948
  id: 'airline_point', type: 'symbol', source: sourceId, 'source-layer': 'waypoint', minzoom: 6,
10926
10949
  layout: {
10927
10950
  'icon-image': T.airlinePointIcon,
10951
+ "icon-pitch-alignment": "map",
10928
10952
  'icon-size': T.airlinePointIconSize || 0.6,
10929
10953
  'icon-allow-overlap': true,
10930
10954
  'icon-ignore-placement': true,
@@ -10949,7 +10973,11 @@ function buildLayers(themeId = 'light') {
10949
10973
  },
10950
10974
  {
10951
10975
  id: 'waypoint-off-airway-symbol', type: 'symbol', source: sourceId, 'source-layer': 'waypoint-off-airway', minzoom: 7,
10952
- layout: { 'icon-image': ['case', ['==', ['get', 'report_type'], 'C'], 'designate_point_inway', 'designate_point_notinway'], '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 },
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
+ },
10953
10981
  paint: {
10954
10982
  'icon-color': T.waypoint, 'text-color': T.waypoint, 'text-halo-color': T.halo, 'text-halo-width': 1,
10955
10983
  "icon-opacity": ["interpolate", ["linear"], ["zoom"], 7, 0.5, 12, 1, 15, 0.2],
@@ -11171,7 +11199,7 @@ class MapSDK {
11171
11199
  this.geoJSONManager = new GeoJSONManager(this.map, this.performanceManager);
11172
11200
  }
11173
11201
  async initializeDefaultLayers() {
11174
- const defaultLayers = ["water", "landLayer", "background"];
11202
+ const defaultLayers = ["water", "landLayer", "background", "coast"];
11175
11203
  for (const layerName of defaultLayers) {
11176
11204
  await this.addBuiltInLayer(layerName, "0");
11177
11205
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aviation-chart",
3
- "version": "2.0.30",
3
+ "version": "2.0.32",
4
4
  "description": "KunYu aviation map SDK",
5
5
  "main": "dist/nav-sdk.esm.js",
6
6
  "module": "dist/nav-sdk.esm.js",