From a41fe1fd72c328471f7e051245c86237bbc3e568 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Tue, 06 May 2025 15:01:20 +0800
Subject: [PATCH] 新建工单,地图坐标保存,坐标系转换处理; 详情中地图坐标系转换去除;

---
 src/components/map-container/mapContainer.vue |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/src/components/map-container/mapContainer.vue b/src/components/map-container/mapContainer.vue
index 5cae64e..73ff5fa 100644
--- a/src/components/map-container/mapContainer.vue
+++ b/src/components/map-container/mapContainer.vue
@@ -113,9 +113,7 @@
 
     if (!lng || !lat) return
 
-    let [newLng, newLat] = DC.CoordTransform.GCJ02ToWGS84(lng, lat)
-
-    let point = new DC.Point(new DC.Position(newLng, newLat))
+    let point = new DC.Point(new DC.Position(lng, lat))
     pointLayer.addOverlay(point)
 
     window.$viewer?.zoomTo(pointLayer)
@@ -133,9 +131,7 @@
     const positionStr = data.map(item => {
         const [lng, lat] = item
 
-        let [newLng, newLat] = DC.CoordTransform.GCJ02ToWGS84(lng, lat)
-
-        return `${newLng}, ${newLat}`
+        return `${lng}, ${lat}`
     }).join(';')
 
     let polyline = new DC.Polyline(positionStr)

--
Gitblit v1.9.3