@chrtco/sdk 0.10.35 → 0.10.37
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/index.cjs +18 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +18 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -593,7 +593,7 @@ var BASE_REGION = "CHRT_BASE";
|
|
|
593
593
|
var BASE_MINZOOM = 0;
|
|
594
594
|
var BASE_MAXZOOM = 11;
|
|
595
595
|
var RELIEF_MINZOOM = 9;
|
|
596
|
-
var RELIEF_MAXZOOM =
|
|
596
|
+
var RELIEF_MAXZOOM = 13;
|
|
597
597
|
var RELIEF_TILE_SIZE = 512;
|
|
598
598
|
var BUILD_PARAM = "v";
|
|
599
599
|
function tileTemplate(base, region, extension, buildId) {
|
|
@@ -29490,7 +29490,7 @@ function baseInlandWaterLayers(opts = {}) {
|
|
|
29490
29490
|
|
|
29491
29491
|
// src/atlas/land-layers.ts
|
|
29492
29492
|
var LAND_SURFACE_MINZOOM = BAND_PRIORITY_RANGES["5"].minzoom;
|
|
29493
|
-
var LAND_SURFACE_LAYERS = (id) => id === "chrtland-base" || id === "chrtland-cover" || id
|
|
29493
|
+
var LAND_SURFACE_LAYERS = (id) => id === "chrtland-base" || id === "chrtland-cover" || id.startsWith("chrtland-contour") || id === "chrtland-hillshade" || id === "chrtland-water" || id.startsWith("chrtland-fade-");
|
|
29494
29494
|
var isLandOverlay = (id) => id.startsWith("chrtland-") && id !== "chrtland-base";
|
|
29495
29495
|
var FADE_PX = 80;
|
|
29496
29496
|
var FADE_BANDS = 16;
|
|
@@ -29628,15 +29628,28 @@ function landLayers(opts = {}) {
|
|
|
29628
29628
|
["<=", ["coalesce", ["get", "index_z"], 99], ["zoom"]],
|
|
29629
29629
|
["==", ["get", "is_index"], 1]
|
|
29630
29630
|
];
|
|
29631
|
+
const contourVisible = ["<=", ["coalesce", ["get", "min_z"], 0], ["zoom"]];
|
|
29632
|
+
layers.push(L({
|
|
29633
|
+
id: "chrtland-contour-index",
|
|
29634
|
+
type: "line",
|
|
29635
|
+
source: src,
|
|
29636
|
+
"source-layer": "land_contour",
|
|
29637
|
+
filter: ["all", contourVisible, isIndexContour],
|
|
29638
|
+
paint: {
|
|
29639
|
+
"line-color": T.contourIndex,
|
|
29640
|
+
"line-width": 0.8,
|
|
29641
|
+
"line-opacity": 0.7
|
|
29642
|
+
}
|
|
29643
|
+
}));
|
|
29631
29644
|
layers.push(L({
|
|
29632
29645
|
id: "chrtland-contour",
|
|
29633
29646
|
type: "line",
|
|
29634
29647
|
source: src,
|
|
29635
29648
|
"source-layer": "land_contour",
|
|
29636
|
-
filter: ["
|
|
29649
|
+
filter: ["all", contourVisible, ["!", isIndexContour]],
|
|
29637
29650
|
paint: {
|
|
29638
|
-
"line-color":
|
|
29639
|
-
"line-width":
|
|
29651
|
+
"line-color": T.contour,
|
|
29652
|
+
"line-width": 0.4,
|
|
29640
29653
|
"line-opacity": 0.7
|
|
29641
29654
|
}
|
|
29642
29655
|
}));
|