diff --git a/src/views/mapPage/realTimeMap/editMap.vue b/src/views/mapPage/realTimeMap/editMap.vue
index 25094e4d..beb8474d 100644
--- a/src/views/mapPage/realTimeMap/editMap.vue
+++ b/src/views/mapPage/realTimeMap/editMap.vue
@@ -730,10 +730,10 @@
-
+
{
const actualLocationX = disposeEventPoints(e).actualLocationX
const actualLocationY = disposeEventPoints(e).actualLocationY
- state.actualLocation.x = actualLocationX
- state.actualLocation.y = actualLocationY
+ // state.actualLocation.x = actualLocationX
+ // state.actualLocation.y = actualLocationY
//新增节点
if (toolbarSwitchType.value === 'drawNodes') {
@@ -1526,7 +1526,11 @@ const state = reactive({
})
//网格的样式
const gradientBackground = computed(() => {
- if (!state.isShowGrid) return {}
+ if (!state.isShowGrid)
+ return {
+ width: `${imgBgObj.width}px`,
+ height: `${imgBgObj.height}px`
+ }
return {
backgroundImage: `
@@ -1584,25 +1588,22 @@ const toolbarClick = async (item) => {
state.showInputBox = false
state.inputBoxValue = ''
}
+
if (
toolbarSwitchType.value === 'generateLine' ||
toolbarSwitchType.value === 'createLineLibrary' ||
- toolbarSwitchType.value === 'createRegion'
+ toolbarSwitchType.value === 'createRegion' ||
+ toolbarSwitchType.value === 'bulkDelete'
) {
state.cursorStyle = 'crosshair'
} else {
state.cursorStyle = `auto`
- }
-
- //工具切换 不适用框选的 要把框选的信息都删掉
- if (
- toolbarSwitchType.value !== 'createLineLibrary' &&
- toolbarSwitchType.value !== 'createRegion'
- ) {
+ //工具切换 不适用框选的 要把框选的信息都删掉
state.drawSelectionAreaShow = false
state.allDrawSelectionAreaBox = []
state.drawSelectionPointList = []
}
+
//非测距
if (toolbarSwitchType.value !== 'ranging') {
state.measureDistancesPoints = [] // 清空存储点击的点位