@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.js CHANGED
@@ -29265,7 +29265,7 @@ function baseInlandWaterLayers(opts = {}) {
29265
29265
 
29266
29266
  // src/atlas/land-layers.ts
29267
29267
  var LAND_SURFACE_MINZOOM = BAND_PRIORITY_RANGES["5"].minzoom;
29268
- var LAND_SURFACE_LAYERS = (id) => id === "chrtland-base" || id === "chrtland-cover" || id === "chrtland-contour" || id === "chrtland-hillshade" || id === "chrtland-water" || id.startsWith("chrtland-fade-");
29268
+ 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-");
29269
29269
  var isLandOverlay = (id) => id.startsWith("chrtland-") && id !== "chrtland-base";
29270
29270
  var FADE_PX = 80;
29271
29271
  var FADE_BANDS = 16;
@@ -29403,15 +29403,28 @@ function landLayers(opts = {}) {
29403
29403
  ["<=", ["coalesce", ["get", "index_z"], 99], ["zoom"]],
29404
29404
  ["==", ["get", "is_index"], 1]
29405
29405
  ];
29406
+ const contourVisible = ["<=", ["coalesce", ["get", "min_z"], 0], ["zoom"]];
29407
+ layers.push(L({
29408
+ id: "chrtland-contour-index",
29409
+ type: "line",
29410
+ source: src,
29411
+ "source-layer": "land_contour",
29412
+ filter: ["all", contourVisible, isIndexContour],
29413
+ paint: {
29414
+ "line-color": T.contourIndex,
29415
+ "line-width": 0.8,
29416
+ "line-opacity": 0.7
29417
+ }
29418
+ }));
29406
29419
  layers.push(L({
29407
29420
  id: "chrtland-contour",
29408
29421
  type: "line",
29409
29422
  source: src,
29410
29423
  "source-layer": "land_contour",
29411
- filter: ["<=", ["coalesce", ["get", "min_z"], 0], ["zoom"]],
29424
+ filter: ["all", contourVisible, ["!", isIndexContour]],
29412
29425
  paint: {
29413
- "line-color": ["case", isIndexContour, T.contourIndex, T.contour],
29414
- "line-width": ["case", isIndexContour, 0.8, 0.4],
29426
+ "line-color": T.contour,
29427
+ "line-width": 0.4,
29415
29428
  "line-opacity": 0.7
29416
29429
  }
29417
29430
  }));