aviation-chart 0.3.1 → 0.3.3
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 +4 -3
- package/package.json +1 -1
package/dist/nav-sdk.esm.js
CHANGED
|
@@ -4948,6 +4948,7 @@ function getAviationBaseStyle(opts) {
|
|
|
4948
4948
|
{ id: "normal", url: `${spriteBase}/sprites/sprite-color` },
|
|
4949
4949
|
{ id: "default", url: `${spriteBase}/sprites/sprite` },
|
|
4950
4950
|
{ id: "v2", url: `${spriteBase}/sprites/sprite-v2` },
|
|
4951
|
+
{ id: "vor", url: `${spriteBase}/sprites/sprite-vor` },
|
|
4951
4952
|
],
|
|
4952
4953
|
sources: {
|
|
4953
4954
|
land: { type: "geojson", data: { type: "FeatureCollection", features: [] } },
|
|
@@ -5432,7 +5433,7 @@ function buildLayersLight() {
|
|
|
5432
5433
|
'source-layer': 'vor',
|
|
5433
5434
|
minzoom: 8,
|
|
5434
5435
|
layout: {
|
|
5435
|
-
"icon-image": "vor_dial",
|
|
5436
|
+
"icon-image": "vor:vor_dial",
|
|
5436
5437
|
"icon-size": ["interpolate", ["linear"], ["zoom"], 8, 0.072, 10, 0.072, 11, 0.126, 12, 0.180, 13, 0.234, 14, 0.288, 15, 0.342, 16, 0.396, 17, 0.450, 22, 0.450],
|
|
5437
5438
|
"icon-rotate": ["to-number", ["get", "VAL_MAG_VAR"], 0],
|
|
5438
5439
|
"icon-rotation-alignment": "map",
|
|
@@ -5926,7 +5927,7 @@ function buildLayersDark() {
|
|
|
5926
5927
|
},
|
|
5927
5928
|
{
|
|
5928
5929
|
id: 'vor_icon_dial', type: 'symbol', source: sourceId, 'source-layer': 'vor',
|
|
5929
|
-
layout: { "icon-image": "vor_dial", "icon-size": ["interpolate", ["linear"], ["zoom"], 5, 0.072, 10, 0.072, 11, 0.126, 12, 0.180, 13, 0.234, 14, 0.288, 15, 0.342, 16, 0.396, 17, 0.450, 22, 0.450], "icon-rotate": ["to-number", ["get", "VAL_MAG_VAR"], 0], "icon-rotation-alignment": "map", "symbol-z-order": "viewport-y", "text-letter-spacing": 0.05, "text-optional": true, "icon-allow-overlap": true, "visibility": "none" },
|
|
5930
|
+
layout: { "icon-image": "vor:vor_dial", "icon-size": ["interpolate", ["linear"], ["zoom"], 5, 0.072, 10, 0.072, 11, 0.126, 12, 0.180, 13, 0.234, 14, 0.288, 15, 0.342, 16, 0.396, 17, 0.450, 22, 0.450], "icon-rotate": ["to-number", ["get", "VAL_MAG_VAR"], 0], "icon-rotation-alignment": "map", "symbol-z-order": "viewport-y", "text-letter-spacing": 0.05, "text-optional": true, "icon-allow-overlap": true, "visibility": "none" },
|
|
5930
5931
|
paint: { "icon-color": "#38bdf8" }
|
|
5931
5932
|
},
|
|
5932
5933
|
{
|
|
@@ -6099,7 +6100,7 @@ class MapSDK {
|
|
|
6099
6100
|
center: [116.3974, 39.9093],
|
|
6100
6101
|
zoom: 10,
|
|
6101
6102
|
minZoom: 0,
|
|
6102
|
-
maxZoom:
|
|
6103
|
+
maxZoom: 18,
|
|
6103
6104
|
preserveDrawingBuffer: false,
|
|
6104
6105
|
...options,
|
|
6105
6106
|
style,
|