@chrtco/sdk 0.10.17 → 0.10.18

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
@@ -27100,6 +27100,18 @@ function buildLayersForClass(objectClass, ct, sourceId = DEFAULT_REGION, opts =
27100
27100
  "icon-allow-overlap": true,
27101
27101
  "icon-ignore-placement": true
27102
27102
  };
27103
+ const valnmrNum = ["to-number", ["coalesce", ["get", "VALNMR"], ["get", "valnmr"], 0], 0];
27104
+ const isMajor = [">=", valnmrNum, 10];
27105
+ const majorLayer = {
27106
+ ...layer,
27107
+ id: `${layer.id}-major`,
27108
+ filter: layer.filter ? ["all", layer.filter, isMajor] : isMajor,
27109
+ layout: { ...layer.layout },
27110
+ minzoom: 6
27111
+ };
27112
+ layer.filter = layer.filter ? ["all", layer.filter, ["!", isMajor]] : ["!", isMajor];
27113
+ layer.minzoom = scaminToMinZoom(entry?.scamin) ?? layer.minzoom;
27114
+ layers.push(majorLayer);
27103
27115
  }
27104
27116
  } else if (resolved.layout) {
27105
27117
  layer.layout = resolved.layout;