aviation-chart 2.0.2 → 2.0.5

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.
@@ -7939,35 +7939,37 @@ function buildLayers(themeId = 'light') {
7939
7939
  // keeps the strip aligned to the ground as the map rotates. The `runway-strip`
7940
7940
  // sprite is supplied by the host sprite sheet.
7941
7941
  {
7942
- id: 'airport-runway', type: 'symbol', source: sourceId, minzoom: 2, 'source-layer': 'airport',
7942
+ id: 'airport-runway', type: 'symbol', source: sourceId, minzoom: 3, 'source-layer': 'airport',
7943
7943
  filter: ['all', ['has', 'RWY_BRG1'], ['case', ['<', ['zoom'], 6], ['==', ['get', 'level'], 1], true]],
7944
7944
  layout: {
7945
7945
  'icon-image': 'runway:runway-strip',
7946
7946
  'icon-rotate': ['get', 'RWY_BRG1'],
7947
7947
  'icon-rotation-alignment': 'map',
7948
- 'icon-size': ['interpolate', ['linear'], ['zoom'], 5, 0.6, 9, 1.2, 12, 1.3],
7948
+ 'icon-size': ['interpolate', ['linear'], ['zoom'], 5, 0.3, 9, 0.6, 12, 0.6],
7949
7949
  'icon-allow-overlap': true,
7950
7950
  'icon-ignore-placement': true,
7951
7951
  'visibility': 'none',
7952
7952
  },
7953
7953
  paint: {
7954
- 'icon-opacity': ['interpolate', ['linear'], ['zoom'], 5, 0.6, 9, 1, 12, 1],
7954
+ "icon-color": T.airport,
7955
+ "icon-opacity": ["interpolate", ["linear"], ["zoom"], 2, 0.75, 3, 0.95, 5, 1, 9, 1, 11, 0.2],
7955
7956
  },
7956
7957
  },
7957
7958
  {
7958
- id: 'airport-runway-cross', type: 'symbol', source: sourceId, minzoom: 2, 'source-layer': 'airport',
7959
+ id: 'airport-runway-cross', type: 'symbol', source: sourceId, minzoom: 3, 'source-layer': 'airport',
7959
7960
  filter: ['all', ['has', 'RWY_BRG2'], ['case', ['<', ['zoom'], 6], ['==', ['get', 'level'], 1], true]],
7960
7961
  layout: {
7961
7962
  'icon-image': 'runway:runway-strip',
7962
7963
  'icon-rotate': ['get', 'RWY_BRG2'],
7963
7964
  'icon-rotation-alignment': 'map',
7964
- 'icon-size': ['interpolate', ['linear'], ['zoom'], 5, 0.6, 9, 1.2, 12, 1.3],
7965
+ 'icon-size': ['interpolate', ['linear'], ['zoom'], 5, 0.3, 9, 0.6, 12, 0.6],
7965
7966
  'icon-allow-overlap': true,
7966
7967
  'icon-ignore-placement': true,
7967
7968
  'visibility': 'none',
7968
7969
  },
7969
7970
  paint: {
7970
- 'icon-opacity': ['interpolate', ['linear'], ['zoom'], 5, 0.6, 9, 1, 12, 1],
7971
+ "icon-color": T.airport,
7972
+ "icon-opacity": ["interpolate", ["linear"], ["zoom"], 2, 0.75, 3, 0.95, 5, 1, 9, 1, 11, 0.2],
7971
7973
  },
7972
7974
  },
7973
7975
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aviation-chart",
3
- "version": "2.0.2",
3
+ "version": "2.0.5",
4
4
  "description": "KunYu aviation map SDK",
5
5
  "main": "dist/nav-sdk.esm.js",
6
6
  "module": "dist/nav-sdk.esm.js",