@chrtco/sdk 0.10.38 → 0.10.39
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 +14 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +14 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -29066,6 +29066,17 @@ function isExemptOpaqueFill(layer) {
|
|
|
29066
29066
|
}
|
|
29067
29067
|
return false;
|
|
29068
29068
|
}
|
|
29069
|
+
var GROUND_FILL_CLASSES = /* @__PURE__ */ new Set([
|
|
29070
|
+
...DOMINANCE_EXEMPT_FILL_CLASSES,
|
|
29071
|
+
"RIVERS"
|
|
29072
|
+
]);
|
|
29073
|
+
function isGroundFill(layer) {
|
|
29074
|
+
if (layer.type !== "fill") return false;
|
|
29075
|
+
for (const cls of GROUND_FILL_CLASSES) {
|
|
29076
|
+
if (layer.id.startsWith(`s52-${cls}-`)) return true;
|
|
29077
|
+
}
|
|
29078
|
+
return false;
|
|
29079
|
+
}
|
|
29069
29080
|
var FILL_FLOOR_FREE_BANDS = /* @__PURE__ */ new Set([
|
|
29070
29081
|
"1",
|
|
29071
29082
|
"2",
|
|
@@ -29073,10 +29084,10 @@ var FILL_FLOOR_FREE_BANDS = /* @__PURE__ */ new Set([
|
|
|
29073
29084
|
]);
|
|
29074
29085
|
function bandVariantMinzoom(layer, B) {
|
|
29075
29086
|
const classMinzoom = layer.minzoom ?? 0;
|
|
29076
|
-
if (
|
|
29077
|
-
return
|
|
29087
|
+
if (isGroundFill(layer) && FILL_FLOOR_FREE_BANDS.has(B)) {
|
|
29088
|
+
return 0;
|
|
29078
29089
|
}
|
|
29079
|
-
if (
|
|
29090
|
+
if (isGroundFill(layer)) {
|
|
29080
29091
|
return BAND_PRIORITY_RANGES[B].minzoom;
|
|
29081
29092
|
}
|
|
29082
29093
|
return Math.max(classMinzoom, BAND_PRIORITY_RANGES[B].minzoom);
|