aviation-chart 0.3.15 → 0.3.17

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.
package/dist/nav-sdk.d.ts CHANGED
@@ -1365,7 +1365,7 @@ declare function buildLayersLight(): ({
1365
1365
  minzoom: number;
1366
1366
  paint: {
1367
1367
  "line-width": (string | number | string[])[];
1368
- "line-opacity": number;
1368
+ "line-opacity": (string | number | string[])[];
1369
1369
  "line-pattern": string;
1370
1370
  'fill-color'?: never;
1371
1371
  'fill-opacity'?: never;
@@ -1990,7 +1990,7 @@ declare function buildLayersLight(): ({
1990
1990
  "text-anchor": string;
1991
1991
  "text-justify": string;
1992
1992
  "text-size": (string | number | string[])[];
1993
- "text-offset": number[];
1993
+ "text-offset": (string | number | (string | number[])[])[];
1994
1994
  "icon-allow-overlap": boolean;
1995
1995
  "icon-ignore-placement": boolean;
1996
1996
  "text-allow-overlap": boolean;
@@ -5146,7 +5146,7 @@ function buildLayersLight() {
5146
5146
  "id": "boundary",
5147
5147
  "type": "line",
5148
5148
  "source": "boundary",
5149
- "minzoom": 0.5,
5149
+ "minzoom": 0,
5150
5150
  "paint": {
5151
5151
  "line-width": [
5152
5152
  "interpolate",
@@ -5161,7 +5161,19 @@ function buildLayersLight() {
5161
5161
  7,
5162
5162
  4
5163
5163
  ],
5164
- "line-opacity": 1,
5164
+ "line-opacity": [
5165
+ "interpolate",
5166
+ [
5167
+ "linear"
5168
+ ],
5169
+ [
5170
+ "zoom"
5171
+ ],
5172
+ 0,
5173
+ 1,
5174
+ 2,
5175
+ 0.5
5176
+ ],
5165
5177
  "line-pattern": "normal:national-border"
5166
5178
  }
5167
5179
  },
@@ -5266,10 +5278,10 @@ function buildLayersLight() {
5266
5278
  paint: { 'text-color': C.controlledStroke },
5267
5279
  },
5268
5280
  {
5269
- id: 'airline', type: 'line', source: sourceId, 'source-layer': 'segment', minzoom: 5,
5281
+ id: 'airline', type: 'line', source: sourceId, 'source-layer': 'segment', minzoom: 6,
5270
5282
  paint: {
5271
5283
  'line-color': ['case', ['==', ['get', 'HAS_REMARK'], 1], '#E8A020', C.segment],
5272
- 'line-width': ['interpolate', ['linear'], ['zoom'], 5, 0.2, 8, 0.8],
5284
+ 'line-width': ['interpolate', ['linear'], ['zoom'], 6, 0.2, 8, 0.8],
5273
5285
  "line-blur": 0,
5274
5286
  "line-opacity":
5275
5287
  [
@@ -5280,9 +5292,9 @@ function buildLayersLight() {
5280
5292
  [
5281
5293
  "zoom"
5282
5294
  ],
5283
- 5,
5284
- 0.3,
5285
5295
  6,
5296
+ 0.3,
5297
+ 7,
5286
5298
  1,
5287
5299
  8,
5288
5300
  1,
@@ -5376,8 +5388,13 @@ function buildLayersLight() {
5376
5388
  'text-field': ['get', 'CODE_ID'],
5377
5389
  "text-anchor": "bottom",
5378
5390
  "text-justify": "center",
5379
- "text-size": ["interpolate", ["linear"], ["zoom"], 4, 0, 5, 12],
5380
- "text-offset": [0, -1.2],
5391
+ "text-size": ["interpolate", ["linear"], ["zoom"], 4, 0, 5, 10, 9, 12],
5392
+ "text-offset": [
5393
+ "interpolate", ["linear"], ["zoom"],
5394
+ 5, ["literal", [0, -1.0]],
5395
+ 9, ["literal", [0, -1.8]],
5396
+ 12, ["literal", [0, -2.0]]
5397
+ ],
5381
5398
  "icon-allow-overlap": true,
5382
5399
  "icon-ignore-placement": true,
5383
5400
  "text-allow-overlap": true,
@@ -5629,7 +5646,7 @@ function buildLayersLight() {
5629
5646
  }
5630
5647
  },
5631
5648
  {
5632
- id: 'airline_point', type: 'symbol', source: sourceId, 'source-layer': 'waypoint', minzoom: 5,
5649
+ id: 'airline_point', type: 'symbol', source: sourceId, 'source-layer': 'waypoint', minzoom: 6,
5633
5650
  layout: {
5634
5651
  'icon-image': ['case', ['==', ['get', 'report_type'], 'C'], 'waypoint-compusory', 'waypoint'], 'icon-size': 0.6,
5635
5652
  'icon-allow-overlap': true,
@@ -5655,7 +5672,7 @@ function buildLayersLight() {
5655
5672
  [
5656
5673
  "zoom"
5657
5674
  ],
5658
- 5,
5675
+ 6,
5659
5676
  0.5,
5660
5677
  12,
5661
5678
  1,
@@ -5748,7 +5765,7 @@ function buildLayersDark() {
5748
5765
  "id": "boundary",
5749
5766
  "type": "line",
5750
5767
  "source": "boundary",
5751
- "minzoom": 0.5,
5768
+ "minzoom": 0,
5752
5769
  "paint": {
5753
5770
  "line-width": [
5754
5771
  "interpolate",
@@ -5848,10 +5865,10 @@ function buildLayersDark() {
5848
5865
  paint: { 'text-color': C.controlledStroke, 'text-halo-color': '#0f172a', 'text-halo-width': 1.5 },
5849
5866
  },
5850
5867
  {
5851
- id: 'airline', type: 'line', source: sourceId, 'source-layer': 'segment', minzoom: 5,
5868
+ id: 'airline', type: 'line', source: sourceId, 'source-layer': 'segment', minzoom: 6,
5852
5869
  paint: {
5853
5870
  'line-color': ['case', ['==', ['get', 'HAS_REMARK'], 1], '#fbbf24', C.segment],
5854
- 'line-width': ['interpolate', ['linear'], ['zoom'], 5, 0.2, 8, 0.8],
5871
+ 'line-width': ['interpolate', ['linear'], ['zoom'], 6, 0.2, 8, 0.8],
5855
5872
  "line-blur": 0,
5856
5873
  "line-opacity":
5857
5874
  [
@@ -5862,7 +5879,7 @@ function buildLayersDark() {
5862
5879
  [
5863
5880
  "zoom"
5864
5881
  ],
5865
- 5,
5882
+ 6,
5866
5883
  0.3,
5867
5884
  6,
5868
5885
  1,
@@ -6031,7 +6048,7 @@ function buildLayersDark() {
6031
6048
  paint: { "text-color": C.ndb, "text-halo-color": "#0f172a", "text-halo-width": 1, "icon-color": C.ndb }
6032
6049
  },
6033
6050
  {
6034
- id: 'airline_point', type: 'symbol', source: sourceId, 'source-layer': 'waypoint', minzoom: 5,
6051
+ id: 'airline_point', type: 'symbol', source: sourceId, 'source-layer': 'waypoint', minzoom: 6,
6035
6052
  layout: { 'icon-image': ['case', ['==', ['get', 'report_type'], 'C'], 'waypoint-compusory', 'waypoint'], 'icon-size': 0.6, 'icon-allow-overlap': true, 'icon-ignore-placement': true, 'text-field': ['get', 'CODE_ID'], 'text-size': 9, '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]], 'text-justify': 'auto', 'text-optional': true },
6036
6053
  paint: { 'icon-color': C.waypoint, 'text-color': C.waypoint, 'text-halo-color': '#0f172a', 'text-halo-width': 1 },
6037
6054
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aviation-chart",
3
- "version": "0.3.15",
3
+ "version": "0.3.17",
4
4
  "description": "KunYu aviation map SDK",
5
5
  "main": "dist/nav-sdk.esm.js",
6
6
  "module": "dist/nav-sdk.esm.js",