aviation-chart 2.0.43 → 2.0.47
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.esm.js +211 -146
- package/glm.txt +29 -27
- package/package.json +1 -1
package/dist/nav-sdk.esm.js
CHANGED
|
@@ -10250,8 +10250,8 @@ const THEME_TOKENS = {
|
|
|
10250
10250
|
airportText: '#006400', // 机场文字色(非 AMM)
|
|
10251
10251
|
runway: '#006400',
|
|
10252
10252
|
vorDial: '#0b417a',
|
|
10253
|
-
vorNormal: '#
|
|
10254
|
-
vor: '#
|
|
10253
|
+
vorNormal: '#1C2526',
|
|
10254
|
+
vor: '#1C2526',
|
|
10255
10255
|
vorCompass: '#2E4053',
|
|
10256
10256
|
vorCompassPointer: '#000000',
|
|
10257
10257
|
ndbIcon: 'v2:ndb-normal', // 图标按主题不同(正常)
|
|
@@ -10578,14 +10578,36 @@ function buildLayers(themeId = 'light') {
|
|
|
10578
10578
|
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] }
|
|
10579
10579
|
},
|
|
10580
10580
|
{
|
|
10581
|
-
id: 'airspace_label_side_layer',
|
|
10581
|
+
id: 'airspace_label_side_layer',
|
|
10582
|
+
type: 'symbol',
|
|
10583
|
+
source: sourceId,
|
|
10584
|
+
'source-layer': 'fir', minzoom: 4,
|
|
10582
10585
|
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 },
|
|
10583
|
-
paint: {
|
|
10586
|
+
paint: {
|
|
10587
|
+
'text-color': T.airspaceStroke, ...T.sideHalo,
|
|
10588
|
+
'text-opacity': ["interpolate", ["linear"], ["zoom"], 5, 0, 5.5, 0.8, 9, 0.8, 10, 0.5],
|
|
10589
|
+
},
|
|
10584
10590
|
},
|
|
10585
10591
|
{
|
|
10586
|
-
id: 'airspace_label_center_layer',
|
|
10592
|
+
id: 'airspace_label_center_layer',
|
|
10593
|
+
filter: [
|
|
10594
|
+
'>=',
|
|
10595
|
+
['to-number', ['get', 'SIZE'], 0],
|
|
10596
|
+
[
|
|
10597
|
+
'step', ['zoom'],
|
|
10598
|
+
1e20, // zoom < 2:不显示
|
|
10599
|
+
3, 700000, // zoom ≥ 2:面积 ≥ 70万 km²
|
|
10600
|
+
4, 300000, // zoom ≥ 3:面积 ≥ 20万 km²
|
|
10601
|
+
5, 80000, // zoom ≥ 4:面积 ≥ 8万 km²
|
|
10602
|
+
6, 20000, // zoom ≥ 5:面积 ≥ 2万 km²
|
|
10603
|
+
7, 0 // zoom ≥ 6:全部允许显示
|
|
10604
|
+
]
|
|
10605
|
+
],
|
|
10606
|
+
|
|
10607
|
+
type: 'symbol',
|
|
10608
|
+
source: sourceId,
|
|
10609
|
+
'source-layer': 'fir-centroid',
|
|
10587
10610
|
minzoom: 3,
|
|
10588
|
-
maxzoom: 7,
|
|
10589
10611
|
layout: {
|
|
10590
10612
|
'text-field': '{CODE_ID}',
|
|
10591
10613
|
'text-font': ['Frutiger Regular'],
|
|
@@ -10942,126 +10964,6 @@ function buildLayers(themeId = 'light') {
|
|
|
10942
10964
|
}
|
|
10943
10965
|
},
|
|
10944
10966
|
},
|
|
10945
|
-
{
|
|
10946
|
-
id: 'airport', type: 'symbol', source: sourceId, minzoom: 2.5, 'source-layer': 'airport',
|
|
10947
|
-
// 4级前就显示大型机场+中型,5级后全部显示
|
|
10948
|
-
filter:
|
|
10949
|
-
['case',
|
|
10950
|
-
['<=', ['zoom'], 3], ['<=', ['get', 'level'], 1], // zoom ≤3,只显示 level=1(大型)
|
|
10951
|
-
['<=', ['zoom'], 4], ['<=', ['get', 'level'], 2], // zoom ≤4,显示 level≤2(大型+中型)
|
|
10952
|
-
['<=', ['zoom'], 5], ['<=', ['get', 'level'], 3], // zoom ≤5,显示 level≤3(大型+中型+小型)
|
|
10953
|
-
true // zoom >5,全部显示
|
|
10954
|
-
],
|
|
10955
|
-
layout: {
|
|
10956
|
-
"icon-image": ["case", ["==", ["get", "CODE_TYPE_MIL_OPS"], "MIL"], "airport-milext-circle", ["==", ["get", "CODE_TYPE_MIL_OPS"], "MILEXT"], "airport-mil-circle", "airport-civ-cirlce"],
|
|
10957
|
-
// "icon-image": ["case", ["==", ["get", "CODE_TYPE_MIL_OPS"], "MIL"], "airport-mil", ["==", ["get", "CODE_TYPE_MIL_OPS"], "MILEXT"], "airport-milext", "airport-civ"],
|
|
10958
|
-
"symbol-z-order": "viewport-y",
|
|
10959
|
-
"text-letter-spacing": 0.05,
|
|
10960
|
-
"icon-pitch-alignment": "map",
|
|
10961
|
-
'text-field': ['get', 'CODE_ID'],
|
|
10962
|
-
"text-anchor": "bottom",
|
|
10963
|
-
"text-justify": "center",
|
|
10964
|
-
"text-size": ["interpolate", ["linear"], ["zoom"], 3, 0, 4, 9, 5, 10],
|
|
10965
|
-
"text-offset": [
|
|
10966
|
-
"interpolate", ["linear"], ["zoom"],
|
|
10967
|
-
5, ["literal", [0, -0.8]],
|
|
10968
|
-
9, ["literal", [0, -1.2]],
|
|
10969
|
-
12, ["literal", [0, -1.3]]
|
|
10970
|
-
],
|
|
10971
|
-
"icon-allow-overlap": true,
|
|
10972
|
-
"icon-ignore-placement": true,
|
|
10973
|
-
"text-allow-overlap": false,
|
|
10974
|
-
"text-ignore-placement": false,
|
|
10975
|
-
"text-optional": true,
|
|
10976
|
-
"visibility": "none",
|
|
10977
|
-
"icon-size": ["interpolate", ["linear"], ["zoom"], 2, 0.6, 5, 0.7, 9, 1, 12, 1.1],
|
|
10978
|
-
'text-font': frutigerBold,
|
|
10979
|
-
},
|
|
10980
|
-
paint: {
|
|
10981
|
-
'icon-color': ['case', ['has', 'has_amm'], T.airportamm, T.airport],
|
|
10982
|
-
"icon-opacity": [
|
|
10983
|
-
"interpolate",
|
|
10984
|
-
[
|
|
10985
|
-
"linear"
|
|
10986
|
-
],
|
|
10987
|
-
[
|
|
10988
|
-
"zoom"
|
|
10989
|
-
],
|
|
10990
|
-
2,
|
|
10991
|
-
0.75,
|
|
10992
|
-
3,
|
|
10993
|
-
0.95,
|
|
10994
|
-
5,
|
|
10995
|
-
1,
|
|
10996
|
-
9,
|
|
10997
|
-
1,
|
|
10998
|
-
11,
|
|
10999
|
-
0.2
|
|
11000
|
-
],
|
|
11001
|
-
"text-color": ['case', ['has', 'has_amm'], T.airportamm, T.airportText],
|
|
11002
|
-
"text-opacity": ["interpolate", ["linear"], ["zoom"], 4, 0.95, 5, 1, 9, 1, 11, 0.2],
|
|
11003
|
-
},
|
|
11004
|
-
},
|
|
11005
|
-
// Runway-orientation strip: a small mark rotated to the true bearing of the
|
|
11006
|
-
// airport's longest runway (RWY_BRG1). Airports with a crossing runway get a
|
|
11007
|
-
// second strip (RWY_BRG2). Both ride the 'airport' source-layer point, so the
|
|
11008
|
-
// strip sits at the airport symbol's center. `icon-rotation-alignment: map`
|
|
11009
|
-
// keeps the strip aligned to the ground as the map rotates. The `runway-strip`
|
|
11010
|
-
// sprite is supplied by the host sprite sheet.
|
|
11011
|
-
{
|
|
11012
|
-
id: 'airport-runway', type: 'symbol', source: sourceId, minzoom: 4, 'source-layer': 'airport',
|
|
11013
|
-
filter: [
|
|
11014
|
-
'all',
|
|
11015
|
-
['has', 'RWY_BRG1'],
|
|
11016
|
-
['case',
|
|
11017
|
-
['<=', ['zoom'], 3], ['<=', ['get', 'level'], 1],
|
|
11018
|
-
['<=', ['zoom'], 4], ['<=', ['get', 'level'], 2],
|
|
11019
|
-
['<=', ['zoom'], 5], ['<=', ['get', 'level'], 3],
|
|
11020
|
-
true
|
|
11021
|
-
]
|
|
11022
|
-
],
|
|
11023
|
-
layout: {
|
|
11024
|
-
'icon-image': 'runway:runway-strip',
|
|
11025
|
-
"icon-pitch-alignment": "map",
|
|
11026
|
-
'icon-rotate': ['get', 'RWY_BRG1'],
|
|
11027
|
-
'icon-rotation-alignment': 'map',
|
|
11028
|
-
'icon-size': ['interpolate', ['linear'], ['zoom'], 2, 0.3, 9, 0.7, 12, 0.7],
|
|
11029
|
-
'icon-allow-overlap': true,
|
|
11030
|
-
'icon-ignore-placement': true,
|
|
11031
|
-
'visibility': 'none',
|
|
11032
|
-
},
|
|
11033
|
-
paint: {
|
|
11034
|
-
"icon-color": T.runway,
|
|
11035
|
-
"icon-opacity": ["interpolate", ["linear"], ["zoom"], 2, 0.75, 9, 1, 11, 0.2],
|
|
11036
|
-
},
|
|
11037
|
-
},
|
|
11038
|
-
{
|
|
11039
|
-
id: 'airport-runway-cross', type: 'symbol', source: sourceId, minzoom: 4, 'source-layer': 'airport',
|
|
11040
|
-
filter: [
|
|
11041
|
-
'all',
|
|
11042
|
-
['has', 'RWY_BRG2'],
|
|
11043
|
-
['case',
|
|
11044
|
-
['<=', ['zoom'], 3], ['<=', ['get', 'level'], 1],
|
|
11045
|
-
['<=', ['zoom'], 4], ['<=', ['get', 'level'], 2],
|
|
11046
|
-
['<=', ['zoom'], 5], ['<=', ['get', 'level'], 3],
|
|
11047
|
-
true
|
|
11048
|
-
]
|
|
11049
|
-
],
|
|
11050
|
-
layout: {
|
|
11051
|
-
'icon-image': 'runway:runway-strip',
|
|
11052
|
-
'icon-rotate': ['get', 'RWY_BRG2'],
|
|
11053
|
-
"icon-pitch-alignment": "map",
|
|
11054
|
-
'icon-rotation-alignment': 'map',
|
|
11055
|
-
'icon-size': ['interpolate', ['linear'], ['zoom'], 2, 0.3, 9, 0.7, 12, 0.7],
|
|
11056
|
-
'icon-allow-overlap': true,
|
|
11057
|
-
'icon-ignore-placement': true,
|
|
11058
|
-
'visibility': 'none',
|
|
11059
|
-
},
|
|
11060
|
-
paint: {
|
|
11061
|
-
"icon-color": T.runway,
|
|
11062
|
-
"icon-opacity": ["interpolate", ["linear"], ["zoom"], 2, 0.75, 9, 1, 11, 0.2],
|
|
11063
|
-
},
|
|
11064
|
-
},
|
|
11065
10967
|
{
|
|
11066
10968
|
id: 'vor_icon_dial', type: 'symbol', source: sourceId, 'source-layer': 'vor', minzoom: 8,
|
|
11067
10969
|
'maxzoom': 12,
|
|
@@ -11211,22 +11113,9 @@ function buildLayers(themeId = 'light') {
|
|
|
11211
11113
|
}
|
|
11212
11114
|
},
|
|
11213
11115
|
{
|
|
11214
|
-
id: 'vor_icon', minzoom:
|
|
11116
|
+
id: 'vor_icon', minzoom: 5, type: 'symbol', source: sourceId, 'source-layer': 'vor',
|
|
11215
11117
|
layout: {
|
|
11216
11118
|
"icon-pitch-alignment": "map",
|
|
11217
|
-
"icon-size": {
|
|
11218
|
-
"base": 2,
|
|
11219
|
-
"stops": [
|
|
11220
|
-
[
|
|
11221
|
-
5,
|
|
11222
|
-
0.4
|
|
11223
|
-
],
|
|
11224
|
-
[
|
|
11225
|
-
7,
|
|
11226
|
-
0.5
|
|
11227
|
-
]
|
|
11228
|
-
]
|
|
11229
|
-
},
|
|
11230
11119
|
'icon-image': [
|
|
11231
11120
|
'case',
|
|
11232
11121
|
['==', ['get', 'NAVAID_TYPE'], 'VOR'],
|
|
@@ -11256,19 +11145,30 @@ function buildLayers(themeId = 'light') {
|
|
|
11256
11145
|
},
|
|
11257
11146
|
paint: {
|
|
11258
11147
|
"icon-color": T.vorNormal,
|
|
11259
|
-
'icon-opacity':
|
|
11148
|
+
'icon-opacity': [
|
|
11149
|
+
'step', ['zoom'],
|
|
11150
|
+
['case', ['==', ['get', 'inway'], 'Y'], 1, 0],
|
|
11151
|
+
8, 1
|
|
11152
|
+
]
|
|
11260
11153
|
}
|
|
11261
11154
|
},
|
|
11262
11155
|
{
|
|
11263
|
-
id: 'vor_label', type: 'symbol', source: sourceId, 'source-layer': 'vor', minzoom: 5, maxzoom: 8,
|
|
11156
|
+
id: 'vor_label', type: 'symbol', source: sourceId, 'source-layer': 'vor', minzoom: 5.5, maxzoom: 8,
|
|
11264
11157
|
layout: {
|
|
11265
11158
|
'text-field': ['get', 'CODE_ID'],
|
|
11266
11159
|
'text-anchor': 'top',
|
|
11267
|
-
"text-size":
|
|
11268
|
-
'text-offset': [0, 0.
|
|
11160
|
+
"text-size": 9,
|
|
11161
|
+
'text-offset': [0, 0.6],
|
|
11269
11162
|
'text-font': ['Frutiger Blod']
|
|
11270
11163
|
},
|
|
11271
|
-
paint: {
|
|
11164
|
+
paint: {
|
|
11165
|
+
'text-color': T.vor, 'text-halo-color': T.halo, 'text-halo-width': 1,
|
|
11166
|
+
'text-opacity': [
|
|
11167
|
+
'step', ['zoom'],
|
|
11168
|
+
['case', ['==', ['get', 'inway'], 'Y'], 1, 0],
|
|
11169
|
+
8, 1
|
|
11170
|
+
]
|
|
11171
|
+
},
|
|
11272
11172
|
},
|
|
11273
11173
|
{
|
|
11274
11174
|
id: 'ndb_icon', type: 'symbol', source: sourceId, minzoom: 4, 'source-layer': 'ndb',
|
|
@@ -11350,6 +11250,167 @@ function buildLayers(themeId = 'light') {
|
|
|
11350
11250
|
},
|
|
11351
11251
|
paint: { 'text-color': T.navAidDetailText, 'text-halo-color': T.navAidDetailHalo, 'text-halo-width': 0.2 },
|
|
11352
11252
|
},
|
|
11253
|
+
|
|
11254
|
+
{
|
|
11255
|
+
id: 'airport', type: 'symbol', source: sourceId, minzoom: 2.5, 'source-layer': 'airport',
|
|
11256
|
+
// 4级前就显示大型机场+中型,5级后全部显示
|
|
11257
|
+
filter:
|
|
11258
|
+
['case',
|
|
11259
|
+
['<=', ['zoom'], 3], ['<=', ['get', 'level'], 1], // zoom ≤3,只显示 level=1(大型)
|
|
11260
|
+
['<=', ['zoom'], 4], ['<=', ['get', 'level'], 2], // zoom ≤4,显示 level≤2(大型+中型)
|
|
11261
|
+
['<=', ['zoom'], 5], ['<=', ['get', 'level'], 3], // zoom ≤5,显示 level≤3(大型+中型+小型)
|
|
11262
|
+
true // zoom >5,全部显示
|
|
11263
|
+
],
|
|
11264
|
+
layout: {
|
|
11265
|
+
"icon-image": ["case", ["==", ["get", "CODE_TYPE_MIL_OPS"], "MIL"], "airport-milext-circle", ["==", ["get", "CODE_TYPE_MIL_OPS"], "MILEXT"], "airport-mil-circle", "airport-civ-cirlce"],
|
|
11266
|
+
// "icon-image": ["case", ["==", ["get", "CODE_TYPE_MIL_OPS"], "MIL"], "airport-mil", ["==", ["get", "CODE_TYPE_MIL_OPS"], "MILEXT"], "airport-milext", "airport-civ"],
|
|
11267
|
+
"symbol-z-order": "viewport-y",
|
|
11268
|
+
"text-letter-spacing": 0.05,
|
|
11269
|
+
"icon-pitch-alignment": "map",
|
|
11270
|
+
'text-field': ['get', 'CODE_ID'],
|
|
11271
|
+
"text-anchor": "bottom",
|
|
11272
|
+
"text-justify": "center",
|
|
11273
|
+
"text-size": ["interpolate", ["linear"], ["zoom"], 3, 0, 4, 9, 5, 10],
|
|
11274
|
+
"text-offset": [
|
|
11275
|
+
"interpolate", ["linear"], ["zoom"],
|
|
11276
|
+
5, ["literal", [0, -0.8]],
|
|
11277
|
+
9, ["literal", [0, -1.2]],
|
|
11278
|
+
12, ["literal", [0, -1.3]]
|
|
11279
|
+
],
|
|
11280
|
+
"icon-allow-overlap": true,
|
|
11281
|
+
"icon-ignore-placement": true,
|
|
11282
|
+
"text-allow-overlap": false,
|
|
11283
|
+
"text-ignore-placement": false,
|
|
11284
|
+
"text-optional": true,
|
|
11285
|
+
"visibility": "none",
|
|
11286
|
+
"icon-size": ["interpolate", ["linear"], ["zoom"], 2, 0.6, 5, 0.7, 9, 1, 12, 1.1],
|
|
11287
|
+
'text-font': frutigerBold,
|
|
11288
|
+
},
|
|
11289
|
+
paint: {
|
|
11290
|
+
'icon-color': ['case', ['has', 'has_amm'], T.airportamm, T.airport],
|
|
11291
|
+
"icon-opacity": [
|
|
11292
|
+
"interpolate",
|
|
11293
|
+
[
|
|
11294
|
+
"linear"
|
|
11295
|
+
],
|
|
11296
|
+
[
|
|
11297
|
+
"zoom"
|
|
11298
|
+
],
|
|
11299
|
+
2,
|
|
11300
|
+
0.75,
|
|
11301
|
+
3,
|
|
11302
|
+
0.95,
|
|
11303
|
+
5,
|
|
11304
|
+
1,
|
|
11305
|
+
9,
|
|
11306
|
+
1,
|
|
11307
|
+
11,
|
|
11308
|
+
0.2
|
|
11309
|
+
],
|
|
11310
|
+
"text-color": ['case', ['has', 'has_amm'], T.airportamm, T.airportText],
|
|
11311
|
+
"text-opacity": ["interpolate", ["linear"], ["zoom"], 4, 0.95, 5, 1, 9, 1, 11, 0.2],
|
|
11312
|
+
},
|
|
11313
|
+
},
|
|
11314
|
+
// Runway-orientation strip: a small mark rotated to the true bearing of the
|
|
11315
|
+
// airport's longest runway (RWY_BRG1). Airports with a crossing runway get a
|
|
11316
|
+
// second strip (RWY_BRG2). Both ride the 'airport' source-layer point, so the
|
|
11317
|
+
// strip sits at the airport symbol's center. `icon-rotation-alignment: map`
|
|
11318
|
+
// keeps the strip aligned to the ground as the map rotates. The `runway-strip`
|
|
11319
|
+
// sprite is supplied by the host sprite sheet.
|
|
11320
|
+
{
|
|
11321
|
+
id: 'airport-runway', type: 'symbol', source: sourceId, minzoom: 4, 'source-layer': 'airport',
|
|
11322
|
+
filter: [
|
|
11323
|
+
'all',
|
|
11324
|
+
['has', 'RWY_BRG1'],
|
|
11325
|
+
['case',
|
|
11326
|
+
['<=', ['zoom'], 3], ['<=', ['get', 'level'], 1],
|
|
11327
|
+
['<=', ['zoom'], 4], ['<=', ['get', 'level'], 2],
|
|
11328
|
+
['<=', ['zoom'], 5], ['<=', ['get', 'level'], 3],
|
|
11329
|
+
true
|
|
11330
|
+
]
|
|
11331
|
+
],
|
|
11332
|
+
layout: {
|
|
11333
|
+
'icon-image': 'runway:runway-strip',
|
|
11334
|
+
"icon-pitch-alignment": "map",
|
|
11335
|
+
'icon-rotate': ['get', 'RWY_BRG1'],
|
|
11336
|
+
'icon-rotation-alignment': 'map',
|
|
11337
|
+
'icon-size': ['interpolate', ['linear'], ['zoom'], 2, 0.3, 9, 0.7, 12, 0.7],
|
|
11338
|
+
'icon-allow-overlap': true,
|
|
11339
|
+
'icon-ignore-placement': true,
|
|
11340
|
+
'visibility': 'none',
|
|
11341
|
+
},
|
|
11342
|
+
paint: {
|
|
11343
|
+
"icon-color": T.runway,
|
|
11344
|
+
"icon-opacity": [
|
|
11345
|
+
"interpolate",
|
|
11346
|
+
[
|
|
11347
|
+
"linear"
|
|
11348
|
+
],
|
|
11349
|
+
[
|
|
11350
|
+
"zoom"
|
|
11351
|
+
],
|
|
11352
|
+
2,
|
|
11353
|
+
0.75,
|
|
11354
|
+
3,
|
|
11355
|
+
0.95,
|
|
11356
|
+
5,
|
|
11357
|
+
0.5,
|
|
11358
|
+
6,
|
|
11359
|
+
0.1,
|
|
11360
|
+
9,
|
|
11361
|
+
1,
|
|
11362
|
+
11,
|
|
11363
|
+
0.2
|
|
11364
|
+
]
|
|
11365
|
+
},
|
|
11366
|
+
},
|
|
11367
|
+
{
|
|
11368
|
+
id: 'airport-runway-cross', type: 'symbol', source: sourceId, minzoom: 4, 'source-layer': 'airport',
|
|
11369
|
+
filter: [
|
|
11370
|
+
'all',
|
|
11371
|
+
['has', 'RWY_BRG2'],
|
|
11372
|
+
['case',
|
|
11373
|
+
['<=', ['zoom'], 3], ['<=', ['get', 'level'], 1],
|
|
11374
|
+
['<=', ['zoom'], 4], ['<=', ['get', 'level'], 2],
|
|
11375
|
+
['<=', ['zoom'], 5], ['<=', ['get', 'level'], 3],
|
|
11376
|
+
true
|
|
11377
|
+
]
|
|
11378
|
+
],
|
|
11379
|
+
layout: {
|
|
11380
|
+
'icon-image': 'runway:runway-strip',
|
|
11381
|
+
'icon-rotate': ['get', 'RWY_BRG2'],
|
|
11382
|
+
"icon-pitch-alignment": "map",
|
|
11383
|
+
'icon-rotation-alignment': 'map',
|
|
11384
|
+
'icon-size': ['interpolate', ['linear'], ['zoom'], 2, 0.3, 9, 0.7, 12, 0.7],
|
|
11385
|
+
'icon-allow-overlap': true,
|
|
11386
|
+
'icon-ignore-placement': true,
|
|
11387
|
+
'visibility': 'none',
|
|
11388
|
+
},
|
|
11389
|
+
paint: {
|
|
11390
|
+
"icon-color": T.runway,
|
|
11391
|
+
"icon-opacity": [
|
|
11392
|
+
"interpolate",
|
|
11393
|
+
[
|
|
11394
|
+
"linear"
|
|
11395
|
+
],
|
|
11396
|
+
[
|
|
11397
|
+
"zoom"
|
|
11398
|
+
],
|
|
11399
|
+
2,
|
|
11400
|
+
0.75,
|
|
11401
|
+
3,
|
|
11402
|
+
0.95,
|
|
11403
|
+
5,
|
|
11404
|
+
0.5,
|
|
11405
|
+
6,
|
|
11406
|
+
0.1,
|
|
11407
|
+
9,
|
|
11408
|
+
1,
|
|
11409
|
+
11,
|
|
11410
|
+
0.2
|
|
11411
|
+
]
|
|
11412
|
+
},
|
|
11413
|
+
},
|
|
11353
11414
|
{
|
|
11354
11415
|
id: 'airline_point', type: 'symbol', source: sourceId, 'source-layer': 'waypoint', minzoom: 6,
|
|
11355
11416
|
layout: {
|
|
@@ -11423,7 +11484,11 @@ const LAYER_GROUPS = {
|
|
|
11423
11484
|
],
|
|
11424
11485
|
airline: ['airline_radial', 'airline', 'airline-shadow', 'airline_label', 'airline_point'],
|
|
11425
11486
|
waypointOffAirway: ['waypoint-off-airway-symbol'],
|
|
11426
|
-
vor: ['vor_icon_dial', 'vor_icon_dial_arrow', 'vor_label', 'vor_label_detail', 'vor_icon'
|
|
11487
|
+
vor: ['vor_icon_dial', 'vor_icon_dial_arrow', 'vor_label', 'vor_label_detail', 'vor_icon',
|
|
11488
|
+
'vor-compass-ring',
|
|
11489
|
+
'vor-compass-ticks',
|
|
11490
|
+
'vor-compass-pointer'
|
|
11491
|
+
],
|
|
11427
11492
|
ndb: ['ndb_icon', 'ndb_label_detail'],
|
|
11428
11493
|
airport: ['airport', 'airport-runway', 'airport-runway-cross'],
|
|
11429
11494
|
};
|
package/glm.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# aviation-chart SDK 开发手册
|
|
2
2
|
|
|
3
|
-
SDK 版本:2.0.
|
|
3
|
+
SDK 版本:2.0.47
|
|
4
4
|
|
|
5
5
|
# 开发约定
|
|
6
6
|
|
|
@@ -438,7 +438,10 @@ setLayerVisible 的组名使用 TYPEMAP 的键;AMM_LAYER_GROUPS 仅用于查
|
|
|
438
438
|
"vor_icon_dial_arrow",
|
|
439
439
|
"vor_label",
|
|
440
440
|
"vor_label_detail",
|
|
441
|
-
"vor_icon"
|
|
441
|
+
"vor_icon",
|
|
442
|
+
"vor-compass-ring",
|
|
443
|
+
"vor-compass-ticks",
|
|
444
|
+
"vor-compass-pointer"
|
|
442
445
|
],
|
|
443
446
|
"ndb": [
|
|
444
447
|
"ndb_icon",
|
|
@@ -568,8 +571,7 @@ setLayerVisible 的组名使用 TYPEMAP 的键;AMM_LAYER_GROUPS 仅用于查
|
|
|
568
571
|
"type": "symbol",
|
|
569
572
|
"source": "navdata",
|
|
570
573
|
"sourceLayer": "fir-centroid",
|
|
571
|
-
"minzoom": 3
|
|
572
|
-
"maxzoom": 7
|
|
574
|
+
"minzoom": 3
|
|
573
575
|
},
|
|
574
576
|
{
|
|
575
577
|
"id": "restrictedLayer",
|
|
@@ -651,27 +653,6 @@ setLayerVisible 的组名使用 TYPEMAP 的键;AMM_LAYER_GROUPS 仅用于查
|
|
|
651
653
|
"sourceLayer": "segment-radial",
|
|
652
654
|
"minzoom": 11
|
|
653
655
|
},
|
|
654
|
-
{
|
|
655
|
-
"id": "airport",
|
|
656
|
-
"type": "symbol",
|
|
657
|
-
"source": "navdata",
|
|
658
|
-
"sourceLayer": "airport",
|
|
659
|
-
"minzoom": 2.5
|
|
660
|
-
},
|
|
661
|
-
{
|
|
662
|
-
"id": "airport-runway",
|
|
663
|
-
"type": "symbol",
|
|
664
|
-
"source": "navdata",
|
|
665
|
-
"sourceLayer": "airport",
|
|
666
|
-
"minzoom": 4
|
|
667
|
-
},
|
|
668
|
-
{
|
|
669
|
-
"id": "airport-runway-cross",
|
|
670
|
-
"type": "symbol",
|
|
671
|
-
"source": "navdata",
|
|
672
|
-
"sourceLayer": "airport",
|
|
673
|
-
"minzoom": 4
|
|
674
|
-
},
|
|
675
656
|
{
|
|
676
657
|
"id": "vor_icon_dial",
|
|
677
658
|
"type": "symbol",
|
|
@@ -714,14 +695,14 @@ setLayerVisible 的组名使用 TYPEMAP 的键;AMM_LAYER_GROUPS 仅用于查
|
|
|
714
695
|
"type": "symbol",
|
|
715
696
|
"source": "navdata",
|
|
716
697
|
"sourceLayer": "vor",
|
|
717
|
-
"minzoom":
|
|
698
|
+
"minzoom": 5
|
|
718
699
|
},
|
|
719
700
|
{
|
|
720
701
|
"id": "vor_label",
|
|
721
702
|
"type": "symbol",
|
|
722
703
|
"source": "navdata",
|
|
723
704
|
"sourceLayer": "vor",
|
|
724
|
-
"minzoom": 5,
|
|
705
|
+
"minzoom": 5.5,
|
|
725
706
|
"maxzoom": 8
|
|
726
707
|
},
|
|
727
708
|
{
|
|
@@ -745,6 +726,27 @@ setLayerVisible 的组名使用 TYPEMAP 的键;AMM_LAYER_GROUPS 仅用于查
|
|
|
745
726
|
"sourceLayer": "ndb",
|
|
746
727
|
"minzoom": 8
|
|
747
728
|
},
|
|
729
|
+
{
|
|
730
|
+
"id": "airport",
|
|
731
|
+
"type": "symbol",
|
|
732
|
+
"source": "navdata",
|
|
733
|
+
"sourceLayer": "airport",
|
|
734
|
+
"minzoom": 2.5
|
|
735
|
+
},
|
|
736
|
+
{
|
|
737
|
+
"id": "airport-runway",
|
|
738
|
+
"type": "symbol",
|
|
739
|
+
"source": "navdata",
|
|
740
|
+
"sourceLayer": "airport",
|
|
741
|
+
"minzoom": 4
|
|
742
|
+
},
|
|
743
|
+
{
|
|
744
|
+
"id": "airport-runway-cross",
|
|
745
|
+
"type": "symbol",
|
|
746
|
+
"source": "navdata",
|
|
747
|
+
"sourceLayer": "airport",
|
|
748
|
+
"minzoom": 4
|
|
749
|
+
},
|
|
748
750
|
{
|
|
749
751
|
"id": "airline_point",
|
|
750
752
|
"type": "symbol",
|