@chrtco/sdk 0.10.28 → 0.10.29

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
@@ -28752,14 +28752,20 @@ function landLayers(opts = {}) {
28752
28752
  }
28753
28753
  }));
28754
28754
  }
28755
+ const isIndexContour = [
28756
+ "any",
28757
+ ["<=", ["coalesce", ["get", "index_z"], 99], ["zoom"]],
28758
+ ["==", ["get", "is_index"], 1]
28759
+ ];
28755
28760
  layers.push(L({
28756
28761
  id: "chrtland-contour",
28757
28762
  type: "line",
28758
28763
  source: src,
28759
28764
  "source-layer": "land_contour",
28765
+ filter: ["<=", ["coalesce", ["get", "min_z"], 0], ["zoom"]],
28760
28766
  paint: {
28761
- "line-color": ["case", ["==", ["get", "is_index"], 1], T.contourIndex, T.contour],
28762
- "line-width": ["case", ["==", ["get", "is_index"], 1], 0.8, 0.4],
28767
+ "line-color": ["case", isIndexContour, T.contourIndex, T.contour],
28768
+ "line-width": ["case", isIndexContour, 0.8, 0.4],
28763
28769
  "line-opacity": 0.7
28764
28770
  }
28765
28771
  }));