aviation-chart 0.3.21 → 0.3.23
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 +5 -5
- package/package.json +1 -1
package/dist/nav-sdk.esm.js
CHANGED
|
@@ -7454,7 +7454,8 @@ function getChartAmmSource(apiUrl) {
|
|
|
7454
7454
|
};
|
|
7455
7455
|
}
|
|
7456
7456
|
function getTerrainSource(apiUrl, terrainUrl) {
|
|
7457
|
-
const url = terrainUrl ??
|
|
7457
|
+
const url = terrainUrl ??
|
|
7458
|
+
"https://api.maptiler.com/tiles/terrain-rgb-v2/{z}/{x}/{y}.webp?key=0fZ6KQdoBr7MjJofYHkh";
|
|
7458
7459
|
return {
|
|
7459
7460
|
type: "raster-dem",
|
|
7460
7461
|
tiles: [url],
|
|
@@ -7541,8 +7542,8 @@ function getContourLayers() {
|
|
|
7541
7542
|
"source-layer": "contours",
|
|
7542
7543
|
layout: { visibility: "none" },
|
|
7543
7544
|
paint: {
|
|
7544
|
-
|
|
7545
|
-
|
|
7545
|
+
'line-color': ['case', ['==', ['get', 'level'], 1], 'rgba(100,70,40,0.40)', 'rgba(120,90,60,0.18)'],
|
|
7546
|
+
'line-width': ['case', ['==', ['get', 'level'], 1], 1.0, 0.5],
|
|
7546
7547
|
},
|
|
7547
7548
|
},
|
|
7548
7549
|
{
|
|
@@ -7556,7 +7557,6 @@ function getContourLayers() {
|
|
|
7556
7557
|
"symbol-placement": "line",
|
|
7557
7558
|
"text-size": 10,
|
|
7558
7559
|
"text-field": ["concat", ["to-string", ["get", "ele"]], " m"],
|
|
7559
|
-
"text-font": ["Noto Sans Regular"],
|
|
7560
7560
|
},
|
|
7561
7561
|
paint: {
|
|
7562
7562
|
"text-color": "rgba(90, 66, 44, 0.9)",
|
|
@@ -8839,7 +8839,7 @@ class MapSDK {
|
|
|
8839
8839
|
if (!this.map.getSource("contour")) {
|
|
8840
8840
|
try {
|
|
8841
8841
|
const demUrl = this.initialOptions.terrainUrl ||
|
|
8842
|
-
|
|
8842
|
+
"https://api.maptiler.com/tiles/terrain-rgb-v2/{z}/{x}/{y}.webp?key=0fZ6KQdoBr7MjJofYHkh";
|
|
8843
8843
|
const dem = setupContourDem({ addProtocol: _mlGlExports.addProtocol }, demUrl, "_mbx");
|
|
8844
8844
|
this.map.addSource("contour", getContourSource(dem));
|
|
8845
8845
|
for (const layer of getContourLayers()) {
|