aviation-chart 2.0.25 → 2.0.27

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.
@@ -7442,15 +7442,15 @@ function getAviationBaseStyle(opts) {
7442
7442
  const spriteBase = (opts.spriteUrl ?? apiUrl).replace(/\/$/, "");
7443
7443
  return {
7444
7444
  version: 8,
7445
- glyphs: "https://aips.siniswift.com/mapsdk/glyphs/{fontstack}/{range}.pbf",
7445
+ glyphs: `${spriteBase}/kyresources/{fontstack}/{range}.pbf`,
7446
7446
  sprite: [
7447
- { id: "plane", url: `${spriteBase}/sprites/sprite-plane` },
7448
- { id: "normal", url: `${spriteBase}/sprites/sprite-color` },
7449
- { id: "default", url: `${spriteBase}/sprites/sprite` },
7450
- { id: "v2", url: `${spriteBase}/sprites/sprite-v2` },
7451
- { id: "vor", url: `${spriteBase}/sprites/sprite-vor` },
7452
- { id: "runway", url: `${spriteBase}/sprites/sprite-runway` },
7453
- { id: "stretch", url: `${spriteBase}/sprites/sprite-stretch` },
7447
+ { id: "plane", url: `${spriteBase}/kyresources/sprite-plane` },
7448
+ { id: "normal", url: `${spriteBase}/kyresources/sprite-color` },
7449
+ { id: "default", url: `${spriteBase}/kyresources/sprite` },
7450
+ { id: "v2", url: `${spriteBase}/kyresources/sprite-v2` },
7451
+ { id: "vor", url: `${spriteBase}/kyresources/sprite-vor` },
7452
+ { id: "runway", url: `${spriteBase}/kyresources/sprite-runway` },
7453
+ { id: "stretch", url: `${spriteBase}/kyresources/sprite-stretch` },
7454
7454
  ],
7455
7455
  sources: {
7456
7456
  land: { type: "geojson", data: LAND_FC },
@@ -10165,7 +10165,8 @@ function buildLayers(themeId = 'light') {
10165
10165
  "text-ignore-placement": false,
10166
10166
  "text-optional": true,
10167
10167
  "visibility": "none",
10168
- "icon-size": ["interpolate", ["linear"], ["zoom"], 2, 0.6, 5, 0.7, 9, 1, 12, 1.1]
10168
+ "icon-size": ["interpolate", ["linear"], ["zoom"], 2, 0.6, 5, 0.7, 9, 1, 12, 1.1],
10169
+ 'text-font': ['Open Sans Semibold'],
10169
10170
  },
10170
10171
  paint: {
10171
10172
  'icon-color': ['case', ['has', 'has_amm'], T.airportamm, T.airport],
@@ -10327,6 +10328,7 @@ function buildLayers(themeId = 'light') {
10327
10328
  "text-letter-spacing": 0.02,
10328
10329
  '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]],
10329
10330
  'text-justify': 'auto',
10331
+ 'text-font': ['Open Sans Semibold']
10330
10332
  },
10331
10333
  paint: {
10332
10334
  'icon-color': T.waypoint,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aviation-chart",
3
- "version": "2.0.25",
3
+ "version": "2.0.27",
4
4
  "description": "KunYu aviation map SDK",
5
5
  "main": "dist/nav-sdk.esm.js",
6
6
  "module": "dist/nav-sdk.esm.js",