@vtx/map 1.1.38 → 1.1.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.
@@ -2541,7 +2541,7 @@ var BaiduMap = /*#__PURE__*/function (_React$Component) {
2541
2541
  key: "cluster",
2542
2542
  value: function cluster(arg) {
2543
2543
  var t = this;
2544
- var ary = t.clusterToolFunction(arg || t.state.pointIds);
2544
+ var ary = t.clusterToolFunction(arg && (arg === null || arg === void 0 ? void 0 : arg.length) > 0 ? arg : t.state.pointIds);
2545
2545
 
2546
2546
  t._cluster.addMarkers(ary);
2547
2547
  } //删除点聚合效果
@@ -2550,7 +2550,7 @@ var BaiduMap = /*#__PURE__*/function (_React$Component) {
2550
2550
  key: "removeCluster",
2551
2551
  value: function removeCluster(arg) {
2552
2552
  var t = this;
2553
- var ids = arg !== null && arg !== void 0 ? arg : t.state.pointIds;
2553
+ var ids = arg && (arg === null || arg === void 0 ? void 0 : arg.length) > 0 ? arg : t.state.pointIds;
2554
2554
  var ary = t.clusterToolFunction(ids);
2555
2555
 
2556
2556
  if (ary.length > 0) {