aviation-chart 2.0.9 → 2.0.10

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 +24 -16
  2. package/package.json +1 -1
@@ -7978,7 +7978,7 @@ function buildLayers(themeId = 'light') {
7978
7978
  ["case", ["all", ["has", "TXT_DESIG_HIGH"], ["!=", ["get", "TXT_DESIG_HIGH"], ""]], ["get", "TXT_DESIG_HIGH"], ["all", ["has", "TXT_DESIG_FORWARD"], ["!=", ["get", "TXT_DESIG_FORWARD"], ""]], ["get", "TXT_DESIG_FORWARD"], ["all", ["has", "TXT_DESIG_BACKWARD"], ["!=", ["get", "TXT_DESIG_BACKWARD"], ""]], ["get", "TXT_DESIG_BACKWARD"], "-"], { "font-scale": 0.95, "text-color": T.alDist }
7979
7979
  ]
7980
7980
  ],
7981
- "text-size": ["interpolate", ["linear"], ["zoom"], 6, 9, 10, 10],
7981
+ "text-size": ["interpolate", ["linear"], ["zoom"], 6.5, 9, 10, 10],
7982
7982
  "icon-text-fit-padding": [0, 3, 0, 3],
7983
7983
  },
7984
7984
  paint: {
@@ -8003,15 +8003,23 @@ function buildLayers(themeId = 'light') {
8003
8003
  paint: { 'text-color': T.segment, ...T.radialHalo },
8004
8004
  },
8005
8005
  {
8006
- id: 'airport', type: 'symbol', source: sourceId, minzoom: 3, 'source-layer': 'airport',
8007
- filter: ['case', ['<', ['zoom'], 6], ['==', ['get', 'level'], 1], true],
8006
+ id: 'airport', type: 'symbol', source: sourceId, minzoom: 2, 'source-layer': 'airport',
8007
+ // 4级前就显示大型机场+中型,5级后全部显示
8008
+ filter:
8009
+ ['case',
8010
+ ['<=', ['zoom'], 3], ['<=', ['get', 'level'], 2], // ≤4 只显 大型+中型
8011
+ true // >4 全部
8012
+ ],
8008
8013
  layout: {
8009
- "icon-image": ["case", ["==", ["get", "CODE_TYPE_MIL_OPS"], "MIL"], "airport-mil", ["==", ["get", "CODE_TYPE_MIL_OPS"], "MILEXT"], "airport-milext", "airport-civ"], "icon-size": ["interpolate", ["linear"], ["zoom"], 4, 0.5, 10, 0.9], "symbol-z-order": "viewport-y", "text-field": ["get", "codeId"],
8014
+ "icon-image": ["case", ["==", ["get", "CODE_TYPE_MIL_OPS"], "MIL"], "airport-mil", ["==", ["get", "CODE_TYPE_MIL_OPS"], "MILEXT"], "airport-milext", "airport-civ"],
8015
+ "icon-size": ["interpolate", ["linear"], ["zoom"], 4, 0.5, 10, 0.7],
8016
+ "symbol-z-order": "viewport-y",
8017
+ "text-field": ["get", "codeId"],
8010
8018
  "text-letter-spacing": 0.05,
8011
8019
  'text-field': ['get', 'CODE_ID'],
8012
8020
  "text-anchor": "bottom",
8013
8021
  "text-justify": "center",
8014
- "text-size": ["interpolate", ["linear"], ["zoom"], 4, 0, 5, 10, 9, 12],
8022
+ "text-size": ["interpolate", ["linear"], ["zoom"], 4, 0, 5, 10, 9, 11],
8015
8023
  "text-offset": [
8016
8024
  "interpolate", ["linear"], ["zoom"],
8017
8025
  5, ["literal", [0, -0.8]],
@@ -8023,7 +8031,7 @@ function buildLayers(themeId = 'light') {
8023
8031
  "text-allow-overlap": true,
8024
8032
  "text-ignore-placement": true,
8025
8033
  "visibility": "none",
8026
- "icon-size": ["interpolate", ["linear"], ["zoom"], 5, 0.6, 9, 1.2, 12, 1.3]
8034
+ "icon-size": ["interpolate", ["linear"], ["zoom"], 5, 0.7, 9, 1.2, 12, 1.3]
8027
8035
  },
8028
8036
  paint: {
8029
8037
  'icon-color': ['case', ['has', 'has_amm'], '#4B2D6E', T.airport],
@@ -8039,37 +8047,37 @@ function buildLayers(themeId = 'light') {
8039
8047
  // keeps the strip aligned to the ground as the map rotates. The `runway-strip`
8040
8048
  // sprite is supplied by the host sprite sheet.
8041
8049
  {
8042
- id: 'airport-runway', type: 'symbol', source: sourceId, minzoom: 3, 'source-layer': 'airport',
8043
- filter: ['all', ['has', 'RWY_BRG1'], ['case', ['<', ['zoom'], 6], ['==', ['get', 'level'], 1], true]],
8050
+ id: 'airport-runway', type: 'symbol', source: sourceId, minzoom: 2, 'source-layer': 'airport',
8051
+ filter: ['all', ['has', 'RWY_BRG1'], ['case', ['<=', ['zoom'], 3], ['<=', ['get', 'level'], 2], true]],
8044
8052
  layout: {
8045
8053
  'icon-image': 'runway:runway-strip',
8046
8054
  'icon-rotate': ['get', 'RWY_BRG1'],
8047
8055
  'icon-rotation-alignment': 'map',
8048
- 'icon-size': ['interpolate', ['linear'], ['zoom'], 5, 0.4, 9, 0.7, 12, 0.75],
8056
+ 'icon-size': ['interpolate', ['linear'], ['zoom'], 5, 0.5, 9, 0.7, 12, 0.75],
8049
8057
  'icon-allow-overlap': true,
8050
8058
  'icon-ignore-placement': true,
8051
8059
  'visibility': 'none',
8052
8060
  },
8053
8061
  paint: {
8054
8062
  "icon-color": T.airport,
8055
- "icon-opacity": ["interpolate", ["linear"], ["zoom"], 2, 0.75, 3, 0.95, 5, 1, 9, 1, 11, 0.2],
8063
+ "icon-opacity": ["interpolate", ["linear"], ["zoom"], 2, 0.65, 3, 0.85, 5, 0.9, 9, 1, 11, 0.2],
8056
8064
  },
8057
8065
  },
8058
8066
  {
8059
- id: 'airport-runway-cross', type: 'symbol', source: sourceId, minzoom: 3, 'source-layer': 'airport',
8060
- filter: ['all', ['has', 'RWY_BRG2'], ['case', ['<', ['zoom'], 6], ['==', ['get', 'level'], 1], true]],
8067
+ id: 'airport-runway-cross', type: 'symbol', source: sourceId, minzoom: 2, 'source-layer': 'airport',
8068
+ filter: ['all', ['has', 'RWY_BRG2'], ['case', ['<=', ['zoom'], 3], ['<=', ['get', 'level'], 2], true]],
8061
8069
  layout: {
8062
8070
  'icon-image': 'runway:runway-strip',
8063
8071
  'icon-rotate': ['get', 'RWY_BRG2'],
8064
8072
  'icon-rotation-alignment': 'map',
8065
- 'icon-size': ['interpolate', ['linear'], ['zoom'], 5, 0.4, 9, 0.7, 12, 0.75],
8073
+ 'icon-size': ['interpolate', ['linear'], ['zoom'], 5, 0.5, 9, 0.7, 12, 0.75],
8066
8074
  'icon-allow-overlap': true,
8067
8075
  'icon-ignore-placement': true,
8068
8076
  'visibility': 'none',
8069
8077
  },
8070
8078
  paint: {
8071
8079
  "icon-color": T.airport,
8072
- "icon-opacity": ["interpolate", ["linear"], ["zoom"], 2, 0.75, 3, 0.95, 5, 1, 9, 1, 11, 0.2],
8080
+ "icon-opacity": ["interpolate", ["linear"], ["zoom"], 2, 0.65, 3, 0.85, 5, 0.9, 9, 1, 11, 0.2],
8073
8081
  },
8074
8082
  },
8075
8083
  {
@@ -8151,11 +8159,11 @@ function buildLayers(themeId = 'light') {
8151
8159
  'text-color': T.waypoint,
8152
8160
  "icon-halo-color": "rgba(0,0,0,0)",
8153
8161
  "icon-halo-width": 0,
8154
- "icon-opacity": ["interpolate", ["linear"], ["zoom"], 6, 0.5, 12, 1, 15, 0.2],
8162
+ "icon-opacity": ["interpolate", ["linear"], ["zoom"], 6.5, 0.5, 12, 1, 15, 0.2],
8155
8163
  "text-halo-color": T.halo,
8156
8164
  "text-halo-width": 1,
8157
8165
  "text-halo-blur": 0,
8158
- "text-opacity": ["interpolate", ["linear"], ["zoom"], 6, 1, 12, 0.9, 15, 0.15],
8166
+ "text-opacity": ["interpolate", ["linear"], ["zoom"], 6.49, 0, 6.5, 1, 12, 0.9, 15, 0.15],
8159
8167
  },
8160
8168
  },
8161
8169
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aviation-chart",
3
- "version": "2.0.9",
3
+ "version": "2.0.10",
4
4
  "description": "KunYu aviation map SDK",
5
5
  "main": "dist/nav-sdk.esm.js",
6
6
  "module": "dist/nav-sdk.esm.js",