From ae92636a63fa2dcbc5708b7a27d6fd291e1c1981 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Fri, 08 Nov 2024 20:17:17 +0800
Subject: [PATCH] Merge branch 'main' of http://139.196.74.78:10010/r/zhyq/bigScreen
---
src/views/space/components/box/dataContent.vue | 39 ++++++++++++++++++++++++++++++++++++++-
1 files changed, 38 insertions(+), 1 deletions(-)
diff --git a/src/views/space/components/box/dataContent.vue b/src/views/space/components/box/dataContent.vue
index 0ef86eb..33fc026 100644
--- a/src/views/space/components/box/dataContent.vue
+++ b/src/views/space/components/box/dataContent.vue
@@ -2,7 +2,7 @@
* @Author: shuishen 1109946754@qq.com
* @Date: 2023-03-13 14:54:26
* @LastEditors: shuishen 1109946754@qq.com
- * @LastEditTime: 2024-11-08 20:12:10
+ * @LastEditTime: 2024-11-08 20:17:16
* @FilePath: \bigScreen\src\views\space\components\box\dataContent.vue
* @Description:
*
@@ -140,6 +140,43 @@
// 行点击
function rowClick (row) {
// 读取定位飞
+ window.$viewer.zoomToPosition(new DC.Position(
+ Number(row.lng),
+ Number(row.lat),
+ 800,
+ 0,
+ -80,
+ 0
+ ), () => {
+ })
+
+ // let layer = new DC.VectorLayer('layer')
+ // window.$viewer.addLayer(layer)
+ // let positions = generatePosition(row.lng, row.lat)
+ // let material = new DC.PolylineDashMaterialProperty({
+ // color: DC.Color.ORANGE
+ // })
+ // positions.forEach(item => {
+ // let label = new DC.CustomLabel(
+ // item,
+ // row.name
+ // )
+ // label.setStyle({
+ // fillColor: DC.Color.YELLOW,
+ // font: '12px',
+ // pixelOffset: { x: 0, y: -10 }
+ // })
+ // label.setVLine({
+ // width: 2,
+ // material
+ // })
+ // layer.addOverlay(label)
+ // })
+}
+function generatePosition (lng, lat) {
+ let list = []
+ list.push(new DC.Position(lng, lat, 100))
+ return list
}
// 查看详情
--
Gitblit v1.9.3