From 3619082d5d70b0363df94113844e83cb0e00ee3e Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Thu, 22 Sep 2022 09:28:54 +0800
Subject: [PATCH] 部分更改
---
src/components/map/index.vue | 15 +++++----------
1 files changed, 5 insertions(+), 10 deletions(-)
diff --git a/src/components/map/index.vue b/src/components/map/index.vue
index 25b1c30..fdb69b1 100644
--- a/src/components/map/index.vue
+++ b/src/components/map/index.vue
@@ -2,7 +2,7 @@
* @Author: shuishen 1109946754@qq.com
* @Date: 2022-08-18 17:00:30
* @LastEditors: shuishen 1109946754@qq.com
- * @LastEditTime: 2022-09-21 10:13:38
+ * @LastEditTime: 2022-09-22 08:46:54
* @FilePath: \srs-police-affairs\src\components\map\index.vue
* @Description: 公用地图组件
*
@@ -349,8 +349,8 @@
that.layerShow(params.layerName, params.flag)
})
- this.$EventBus.$on('flyToPosition', (params) => {
- that.flyToPosition(params.siteJd, params.siteWd, params.siteGd, params.siteHeading, params.sitePitch, params.siteRoll, params.time)
+ this.$EventBus.$on('toPosition', (params) => {
+ that.toPosition(params.siteJd, params.siteWd, params.siteGd, params.siteHeading, params.sitePitch, params.siteRoll, params.time)
})
@@ -364,11 +364,6 @@
that.removeMxTileset(params.titlesetName, params.incident)
})
- this.$EventBus.$emit('addMxTileset', {
- titlesetName: 'sdOrrTilesetLayer',
- titlesetUrl: "/sd/tileset.json",
- incident: this.tilesetClick
- })
},
methods: {
@@ -573,7 +568,7 @@
* @param {*} siteRoll 翻转角度,默认0
* @param {*} time 飞行时间,默认3秒
*/
- flyToPosition (siteJd, siteWd, siteGd = 2000, siteHeading = 0, sitePitch = -90, siteRoll = 0, time = 3) {
+ toPosition (siteJd, siteWd, siteGd = 2000, siteHeading = 0, sitePitch = -90, siteRoll = 0, time = 3) {
global.viewer.flyToPosition(
new global.DC.Position(
Number(siteJd),
@@ -613,7 +608,7 @@
// global.viewer.flyTo(tilesetObject[titlesetName])
- this.flyToPosition(116.027212, 28.678499, 600, -3, -45)
+ this.toPosition(116.027212, 28.678499, 600, -3, -45)
tilesetObject[titlesetName].on(global.DC.MouseEventType.CLICK, incident)
},
--
Gitblit v1.9.3