aviation-chart 0.3.0 → 0.3.2
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 +3 -2
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: [] } },
|
|
@@ -4969,8 +4970,8 @@ function getNavdataSource(apiUrl, period) {
|
|
|
4969
4970
|
return {
|
|
4970
4971
|
type: "vector",
|
|
4971
4972
|
tiles: [navdataTilesUrl(apiUrl, period)],
|
|
4972
|
-
minzoom: 0,
|
|
4973
|
-
maxzoom:
|
|
4973
|
+
minzoom: 0.5,
|
|
4974
|
+
maxzoom: 18,
|
|
4974
4975
|
};
|
|
4975
4976
|
}
|
|
4976
4977
|
function getChartAmmSource(apiUrl) {
|
|
@@ -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,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aviation-chart",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "KunYu aviation map SDK",
|
|
5
5
|
"main": "dist/nav-sdk.esm.js",
|
|
6
6
|
"module": "dist/nav-sdk.esm.js",
|
|
@@ -27,7 +27,8 @@
|
|
|
27
27
|
"clean": "rimraf dist",
|
|
28
28
|
"docs:init": "npx typedoc",
|
|
29
29
|
"docs:build": "vitepress build doc",
|
|
30
|
-
"docs:dev": "vitepress dev doc"
|
|
30
|
+
"docs:dev": "vitepress dev doc",
|
|
31
|
+
"release": "bash scripts/publish.sh"
|
|
31
32
|
},
|
|
32
33
|
"keywords": [
|
|
33
34
|
"map",
|