点位创建

This commit is contained in:
licuizhu 2024-01-24 21:36:41 +08:00
parent c7a44d11eb
commit 4fc73b14be

View File

@ -597,10 +597,13 @@ class BaseMap extends React.Component{
}).then((e) => {
this.state.pointDrawer.removeActiveFeature();
this.state.pointDrawer.disable();
let layerId = this.state.pointAdd.layerId;
if (e.success) {
message.success(e.message || '成功!');
this.getLayerPoints(this.state.pointAdd.layerId, true, 1);//true新增1点
// this.refs.getLayerDataFun.changeUnitAmount(this.state.pointAdd.layerId);
setTimeout(() => {
this.getLayerPoints(layerId, true, 1);
this.refs.getLayerDataFun.changeUnitAmount(this.state.pointAdd.layerId);
}, 1000);//true新增1点
this.setState({
isModalOpen: false,
pointAdd: {},