From fd437ecb26e067af8407401b64050b54010add72 Mon Sep 17 00:00:00 2001
From: linwe <872216996@qq.com>
Date: Fri, 08 Nov 2024 17:50:37 +0800
Subject: [PATCH] 定位

---
 src/views/space/components/box/dataContent.vue |   46 +++++++++++++++++++++++-----------------------
 1 files changed, 23 insertions(+), 23 deletions(-)

diff --git a/src/views/space/components/box/dataContent.vue b/src/views/space/components/box/dataContent.vue
index 8d6d8fe..6e0cd3f 100644
--- a/src/views/space/components/box/dataContent.vue
+++ b/src/views/space/components/box/dataContent.vue
@@ -149,32 +149,32 @@
   ), () => {
   })
 
-  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)
-  })
+  // 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, 3000))
+  list.push(new DC.Position(lng, lat, 100))
   return list
 }
 

--
Gitblit v1.9.3