瀏覽代碼

map change

pull/214/head
lixin 1 年之前
父節點
當前提交
5b29cc591a
共有 1 個檔案被更改,包括 3 行新增7 行删除
  1. +3
    -7
      src/views/dashboard/components/OneMap.vue

+ 3
- 7
src/views/dashboard/components/OneMap.vue 查看文件

@@ -54,11 +54,10 @@ import FireAlarm from './FireAlarm.vue'
import WarningDrawer from './WarningDrawer.vue'
import gcj02Mecator from '@/utils/map/gcj02Mecator.js'
import { useInspectionStore } from '@/store/modules/inspection.js'
import ToolBar from '@/components/Map/ToolBar.vue'

export default {
name: 'OneMap',
components: { AirInfo, ProblemInfo, SuppliesInfo, FireAlarm, WarningDrawer, MonitorVideo, ToolBar },
components: { AirInfo, ProblemInfo, SuppliesInfo, FireAlarm, WarningDrawer, MonitorVideo },
props: {
id: {
type: String,
@@ -113,10 +112,6 @@ export default {
}
})

const measureDistance = () => {

}

// 点击展示属性
const click2ShowInfo = (e) => {
// 防止冒泡
@@ -213,7 +208,8 @@ export default {
zoom: false
}),
interactions: interaction.defaults({
doubleClickZoom: false // 屏蔽双击放大事件
// 禁止地图双击放大事件
doubleClickZoom: false
})
})
data.map.addLayer(wmsSource)

Loading…
取消
儲存