@vtx/map 1.2.26 → 1.2.28

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.
@@ -2216,7 +2216,11 @@ var TMap = /*#__PURE__*/function (_React$Component) {
2216
2216
  ms.mapLayer.disableEdit();
2217
2217
  break;
2218
2218
  }
2219
- t.editGraphicChange(t.state.editId);
2219
+ // 如果内容不变,就不返回
2220
+ if (t.lastGraphic != JSON.stringify(ms.geometry)) {
2221
+ t.editGraphicChange(t.state.editId);
2222
+ t.lastGraphic = JSON.stringify(ms.geometry);
2223
+ }
2220
2224
  t.setState({
2221
2225
  editId: '',
2222
2226
  editGraphic: ''