@chrtco/sdk 0.10.35 → 0.10.36

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 CHANGED
@@ -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 === "chrtland-contour" || id === "chrtland-hillshade" || id === "chrtland-water" || id.startsWith("chrtland-fade-");
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: ["<=", ["coalesce", ["get", "min_z"], 0], ["zoom"]],
29649
+ filter: ["all", contourVisible, ["!", isIndexContour]],
29637
29650
  paint: {
29638
- "line-color": ["case", isIndexContour, T.contourIndex, T.contour],
29639
- "line-width": ["case", isIndexContour, 0.8, 0.4],
29651
+ "line-color": T.contour,
29652
+ "line-width": 0.4,
29640
29653
  "line-opacity": 0.7
29641
29654
  }
29642
29655
  }));