aviation-chart 2.0.36 → 2.0.38

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.
@@ -10482,9 +10482,13 @@ function buildLayers(themeId = 'light') {
10482
10482
  },
10483
10483
  {
10484
10484
  "id": "boundary", "type": "line", "source": "boundary", "minzoom": 0,
10485
+ layout: {
10486
+ "line-join": "bevel",
10487
+ "line-cap": "butt",
10488
+ },
10485
10489
  "paint": {
10486
10490
  "line-width": ["interpolate", ["linear"], ["zoom"], 0, 1, 7, 4],
10487
- "line-opacity": 1,
10491
+ "line-opacity": ["interpolate", ["linear"], ["zoom"], 2, 1, 2.5, 0, 4, 1],
10488
10492
  "line-pattern": T.boundaryPattern,
10489
10493
  }
10490
10494
  },
@@ -10516,16 +10520,16 @@ function buildLayers(themeId = 'light') {
10516
10520
  },
10517
10521
  },
10518
10522
  {
10519
- id: 'airspaceLayer', type: 'line', source: sourceId, 'source-layer': 'fir', minzoom: 2,
10523
+ id: 'airspaceLayer', type: 'line', source: sourceId, 'source-layer': 'fir-boundary', minzoom: 2,
10520
10524
  paint: { "line-color": T.airspaceStroke, "line-opacity": ["interpolate", ["linear"], ["zoom"], 2, 0, 2.7, 0.8, 9, 0.8, 10, 0.5], "line-width": 0.5, 'line-dasharray': [4.2, 4] }
10521
10525
  },
10522
10526
  {
10523
- "id": "airspaceLayer_line", type: 'line', source: sourceId, 'source-layer': 'fir', "minzoom": 5,
10527
+ "id": "airspaceLayer_line", type: 'line', source: sourceId, 'source-layer': 'fir-boundary', "minzoom": 5,
10524
10528
  layout: { "line-miter-limit": 0, "line-cap": "butt", "line-join": "miter" },
10525
10529
  paint: { "line-color": T.airspaceStroke, "line-opacity": ["interpolate", ["linear"], ["zoom"], 5, 0, 5.5, 0.8, 9, 0.8, 10, 0.5], "line-width": 6, "line-dasharray": [0.2, 5] }
10526
10530
  },
10527
10531
  {
10528
- id: 'airspace_label_side_layer', type: 'symbol', source: sourceId, 'source-layer': 'fir', minzoom: 4,
10532
+ id: 'airspace_label_side_layer', type: 'symbol', source: sourceId, 'source-layer': 'fir-label-line', minzoom: 4,
10529
10533
  layout: { 'text-field': ["concat", ["get", "TXT_NAME"], "/", ["get", "CODE_ID"], "/", ["get", "CODE_TYPE"]], 'text-font': frutigerBold, 'text-size': 10, 'symbol-placement': 'line', 'text-max-width': 8, "text-offset": [0, 1], "text-letter-spacing": 0.05, "text-optional": true },
10530
10534
  paint: { 'text-color': T.airspaceStroke, ...T.sideHalo },
10531
10535
  },
@@ -10908,7 +10912,7 @@ function buildLayers(themeId = 'light') {
10908
10912
  'text-field': ['get', 'CODE_ID'],
10909
10913
  "text-anchor": "bottom",
10910
10914
  "text-justify": "center",
10911
- "text-size": ["interpolate", ["linear"], ["zoom"], 3, 0, 4, 10, 5, 10],
10915
+ "text-size": ["interpolate", ["linear"], ["zoom"], 3, 0, 4, 9, 5, 10],
10912
10916
  "text-offset": [
10913
10917
  "interpolate", ["linear"], ["zoom"],
10914
10918
  5, ["literal", [0, -0.8]],
@@ -11160,7 +11164,15 @@ function buildLayers(themeId = 'light') {
11160
11164
  {
11161
11165
  id: 'vor_icon', minzoom: 4, type: 'symbol', source: sourceId, 'source-layer': 'vor',
11162
11166
  layout: {
11163
- "icon-image": "navig:vordme",
11167
+ // "icon-image": "navig:vordme",
11168
+ 'icon-image': [
11169
+ 'case',
11170
+ ['==', ['get', 'NAVAID_TYPE'], 'VOR'],
11171
+ 'navig:vor',
11172
+ ['==', ['get', 'NAVAID_TYPE'], 'VORDME'],
11173
+ 'navig:vordme',
11174
+ 'navig:vordme'
11175
+ ],
11164
11176
  "icon-pitch-alignment": "map",
11165
11177
  "icon-size": {
11166
11178
  "base": 2,
@@ -11216,7 +11228,7 @@ function buildLayers(themeId = 'light') {
11216
11228
  {
11217
11229
  id: 'vor_label', type: 'symbol', source: sourceId, 'source-layer': 'vor', minzoom: 5, maxzoom: 8,
11218
11230
  layout: {
11219
- 'text-field': ['get', 'CODE_ID'], 'text-font': ['Frutiger Regular'], 'text-size': 10, 'text-anchor': 'top',
11231
+ 'text-field': ['get', 'CODE_ID'], 'text-font': ['Frutiger Regular'], 'text-size': 9, 'text-anchor': 'top',
11220
11232
  'text-offset': [0, 0.5]
11221
11233
  },
11222
11234
  paint: { 'text-color': T.vor, 'text-halo-color': T.halo, 'text-halo-width': 1 },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aviation-chart",
3
- "version": "2.0.36",
3
+ "version": "2.0.38",
4
4
  "description": "KunYu aviation map SDK",
5
5
  "main": "dist/nav-sdk.esm.js",
6
6
  "module": "dist/nav-sdk.esm.js",