@dartcom/ui-kit 10.3.4 → 10.3.5

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.
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layers/leaflet/layers/condition/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,WAAW,CAAC;AAInB,eAAO,MAAM,kBAAkB,GAAI,QAAQ,kBAAkB,yBAyC5D,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layers/leaflet/layers/condition/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,WAAW,CAAC;AAInB,eAAO,MAAM,kBAAkB,GAAI,QAAQ,kBAAkB,yBA2C5D,CAAC"}
package/dist/index.cjs CHANGED
@@ -39650,24 +39650,29 @@ var ConditionTypes;
39650
39650
 
39651
39651
  const getConditionLayers = (source) => {
39652
39652
  const layers = [];
39653
- const sublayers = {};
39654
39653
  const data = {
39655
39654
  source,
39656
39655
  layer: exports.SourceLayers.CONDITIONS,
39657
39656
  };
39658
- const layer = {
39659
- id: getUniqueKey(),
39660
- data,
39661
- };
39662
39657
  Object.values(ConditionTypes).forEach((conditionType) => {
39663
- sublayers[`_${conditionType}`] = {
39658
+ const layer = {
39659
+ id: getUniqueKey(),
39664
39660
  filter: `function() {
39665
39661
  const { type } = feature;
39666
39662
 
39667
- const isShow = type === '${conditionType}';
39663
+ const isType = type === '${conditionType}';
39668
39664
 
39669
- return isShow;
39665
+ switch(type) {
39666
+ case '${ConditionTypes.gate}': {
39667
+ return $zoom >= 18 && isType;
39668
+ }
39669
+
39670
+ default: {
39671
+ return isType;
39672
+ }
39673
+ }
39670
39674
  }`,
39675
+ data,
39671
39676
  draw: {
39672
39677
  points: {
39673
39678
  texture: conditionType,
@@ -39676,9 +39681,8 @@ const getConditionLayers = (source) => {
39676
39681
  },
39677
39682
  },
39678
39683
  };
39684
+ layers.push(layer);
39679
39685
  });
39680
- layer.sublayers = sublayers;
39681
- layers.push(layer);
39682
39686
  return layers;
39683
39687
  };
39684
39688