编辑地图

This commit is contained in:
yyy 2025-02-15 17:34:34 +08:00
parent 48d26d8479
commit 06b52ad6ca

View File

@ -503,6 +503,7 @@ const mapClick = (e) => {
if (toolbarSwitchType.value === 'ranging') { if (toolbarSwitchType.value === 'ranging') {
measureDistancesClick(e) measureDistancesClick(e)
} }
disposeEventPoints(e)
} }
// //
const textFormSuccess = (form) => { const textFormSuccess = (form) => {
@ -1305,6 +1306,8 @@ const disposeEventPoints = (event) => {
const actualLocationX = (x - imgBgObj.origin[0]) / imgBgObj.resolution const actualLocationX = (x - imgBgObj.origin[0]) / imgBgObj.resolution
const actualLocationY = (y - imgBgObj.origin[1]) / imgBgObj.resolution const actualLocationY = (y - imgBgObj.origin[1]) / imgBgObj.resolution
console.log(actualLocationX, actualLocationY, '实际坐标')
return { return {
x, x,
y, y,