@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.cjs +8 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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",
|
|
28762
|
-
"line-width": ["case",
|
|
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
|
}));
|