diff --git a/src/views/mapPage/realTimeMap/editMap.vue b/src/views/mapPage/realTimeMap/editMap.vue index 589ce004..7dd9ecee 100644 --- a/src/views/mapPage/realTimeMap/editMap.vue +++ b/src/views/mapPage/realTimeMap/editMap.vue @@ -503,6 +503,7 @@ const mapClick = (e) => { if (toolbarSwitchType.value === 'ranging') { measureDistancesClick(e) } + disposeEventPoints(e) } //输入文字样式改变 const textFormSuccess = (form) => { @@ -1305,6 +1306,8 @@ const disposeEventPoints = (event) => { const actualLocationX = (x - imgBgObj.origin[0]) / imgBgObj.resolution const actualLocationY = (y - imgBgObj.origin[1]) / imgBgObj.resolution + console.log(actualLocationX, actualLocationY, '实际坐标') + return { x, y,