aviation-chart 0.3.23 → 0.3.25

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 +36 -34
  2. package/package.json +1 -1
@@ -1458,33 +1458,7 @@ function buildAMMLayersLight(sourceId = 'amm') {
1458
1458
  'line-width': ['interpolate', ['linear'], ['zoom'], 15, 0.8, 18, 2]
1459
1459
  },
1460
1460
  },
1461
- // 滑行道名称(中心线 symbol)
1462
- {
1463
- id: 'amm-taxiway-label',
1464
- type: 'symbol',
1465
- source: sourceId,
1466
- 'source-layer': 'amm-taxiway-line',
1467
- minzoom: 14,
1468
- layout: {
1469
- 'text-field': ['get', 'idlin'],
1470
- 'text-size': 10,
1471
- "icon-image": "text_bg",
1472
- "icon-text-fit": "both",
1473
- "icon-text-fit-padding": [
1474
- 1,
1475
- 2,
1476
- 1,
1477
- 2
1478
- ],
1479
- 'symbol-placement': 'line',
1480
- 'text-keep-upright': true,
1481
- 'text-allow-overlap': false,
1482
- },
1483
- paint: {
1484
- 'text-color': "#FFF",
1485
- "icon-color": C.taxiwayLine
1486
- },
1487
- },
1461
+
1488
1462
 
1489
1463
  // ── 等待位(z11+)─────
1490
1464
  {
@@ -1622,6 +1596,33 @@ function buildAMMLayersLight(sourceId = 'amm') {
1622
1596
  'line-width': 1,
1623
1597
  },
1624
1598
  },
1599
+ // 滑行道名称(中心线 symbol)
1600
+ {
1601
+ id: 'amm-taxiway-label',
1602
+ type: 'symbol',
1603
+ source: sourceId,
1604
+ 'source-layer': 'amm-taxiway-line',
1605
+ minzoom: 14,
1606
+ layout: {
1607
+ 'text-field': ['get', 'idlin'],
1608
+ 'text-size': 10,
1609
+ "icon-image": "text_bg",
1610
+ "icon-text-fit": "both",
1611
+ "icon-text-fit-padding": [
1612
+ 1,
1613
+ 2,
1614
+ 1,
1615
+ 2
1616
+ ],
1617
+ 'symbol-placement': 'line',
1618
+ 'text-keep-upright': true,
1619
+ 'text-allow-overlap': false,
1620
+ },
1621
+ paint: {
1622
+ 'text-color': "#FFF",
1623
+ "icon-color": C.taxiwayLine
1624
+ },
1625
+ },
1625
1626
 
1626
1627
  // 跑道入口标签:编号 + 标高(z14+)
1627
1628
  {
@@ -1817,11 +1818,7 @@ function buildAMMLayersDark(sourceId = 'amm') {
1817
1818
  { id: 'amm-apron-stroke', type: 'line', source: sourceId, 'source-layer': 'amm-apron', minzoom: 11, paint: { 'line-color': '#334155', 'line-width': 0.5 } },
1818
1819
  { id: 'amm-taxiway-fill', type: 'fill', source: sourceId, 'source-layer': 'amm-taxiway', minzoom: 11, paint: { 'fill-color': C.taxiway, 'fill-opacity': 0.8 } },
1819
1820
  { id: 'amm-taxiway-line', type: 'line', source: sourceId, 'source-layer': 'amm-taxiway-line', minzoom: 11, paint: { 'line-color': C.taxiwayLine, 'line-width': ['interpolate', ['linear'], ['zoom'], 15, 0.8, 18, 2] } },
1820
- {
1821
- id: 'amm-taxiway-label', type: 'symbol', source: sourceId, 'source-layer': 'amm-taxiway-line', minzoom: 14,
1822
- layout: { 'text-field': ['get', 'idlin'], 'text-size': 10, "icon-image": "text_bg", "icon-text-fit": "both", "icon-text-fit-padding": [1, 2, 1, 2], 'symbol-placement': 'line', 'text-keep-upright': true, 'text-allow-overlap': false },
1823
- paint: { 'text-color': "#0f172a", "icon-color": C.taxiwayLine },
1824
- },
1821
+
1825
1822
  { id: 'amm-holding', type: 'line', source: sourceId, 'source-layer': 'amm-holding', minzoom: 11, paint: { 'line-color': C.holding, 'line-width': 1.5 } },
1826
1823
  { id: 'amm-runway-marking', type: 'fill', source: sourceId, 'source-layer': 'amm-runway-marking', minzoom: 13, paint: { 'fill-color': C.runwayMarking, 'fill-opacity': 0.8 } },
1827
1824
  { id: 'amm-restricted-fill', type: 'fill', source: sourceId, 'source-layer': 'amm-restricted', minzoom: 11, paint: { 'fill-color': C.restricted, 'fill-opacity': 0.12 } },
@@ -1835,6 +1832,11 @@ function buildAMMLayersDark(sourceId = 'amm') {
1835
1832
  paint: { 'text-color': '#e2e8f0', 'text-halo-color': '#0f172a', 'text-halo-width': 2 },
1836
1833
  },
1837
1834
  { id: 'amm-stand-line', type: 'line', source: sourceId, 'source-layer': 'amm-stand-line', minzoom: 13, paint: { 'line-color': C.standLine, 'line-width': 1 } },
1835
+ {
1836
+ id: 'amm-taxiway-label', type: 'symbol', source: sourceId, 'source-layer': 'amm-taxiway-line', minzoom: 14,
1837
+ layout: { 'text-field': ['get', 'idlin'], 'text-size': 10, "icon-image": "text_bg", "icon-text-fit": "both", "icon-text-fit-padding": [1, 2, 1, 2], 'symbol-placement': 'line', 'text-keep-upright': true, 'text-allow-overlap': false },
1838
+ paint: { 'text-color': "#0f172a", "icon-color": C.taxiwayLine },
1839
+ },
1838
1840
  {
1839
1841
  id: 'amm-runway-threshold-label', type: 'symbol', source: sourceId, 'source-layer': 'amm-runway-threshold', minzoom: 12,
1840
1842
  layout: { "icon-image": "text_bg", "icon-text-fit": "both", "icon-text-fit-padding": [1, 2, 1, 2], 'text-field': ['get', 'idthr'], 'text-size': 14, 'text-allow-overlap': true, 'text-rotation-alignment': 'map', 'icon-rotation-alignment': 'map' },
@@ -1942,7 +1944,7 @@ function buildAMMLayersNeutral(sourceId = 'amm') {
1942
1944
 
1943
1945
  // ── Dispatcher ────────────────────────────────────────────────────────────────
1944
1946
  function buildAMMLayers(sourceId = 'amm', themeId = 'light') {
1945
- if (themeId === 'dark') return buildAMMLayersDark(sourceId)
1947
+ if (themeId === 'dark') return buildAMMLayersDark(sourceId)
1946
1948
  if (themeId === 'neutral') return buildAMMLayersNeutral(sourceId)
1947
1949
  return buildAMMLayersLight(sourceId)
1948
1950
  }
@@ -8356,7 +8358,7 @@ function buildLayersDark() {
8356
8358
  ],
8357
8359
  6,
8358
8360
  0.3,
8359
- 6,
8361
+ 7,
8360
8362
  1,
8361
8363
  8,
8362
8364
  1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aviation-chart",
3
- "version": "0.3.23",
3
+ "version": "0.3.25",
4
4
  "description": "KunYu aviation map SDK",
5
5
  "main": "dist/nav-sdk.esm.js",
6
6
  "module": "dist/nav-sdk.esm.js",