编辑地图
This commit is contained in:
parent
48d26d8479
commit
06b52ad6ca
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user