|
|
@@ -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) |