From 0362dbf2495b3281607f7c74b160a78c923fb6b4 Mon Sep 17 00:00:00 2001
From: lixuliang <lixuliang_hd@126.com>
Date: 星期二, 23 一月 2024 11:51:29 +0800
Subject: [PATCH] 定位

---
 src/utils/map.js |   17 +++++++++--------
 1 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/src/utils/map.js b/src/utils/map.js
index 185498f..280127f 100644
--- a/src/utils/map.js
+++ b/src/utils/map.js
@@ -84,7 +84,6 @@
     axios
         .get(window.gisBaseUrl + '/gisserver/wfsserver/yinjing?version=1.3.0&request=GetFeature&format=json&typename=yz浜曟暟鎹�')
         .then(res => {
-            debugger
             // let manholeList = JSON.parse(res.data);
             store.setLayerPanelShow(false);
             res.data.features.forEach((item, index) => {
@@ -140,7 +139,6 @@
 //     axios
 //         .get(window.gisBaseUrl + '/gisserver/wfsserver/qiyelianqiye?version=1.3.0&request=GetFeature&format=json&typename=浼佷笟閾句紒涓�')
 //         .then(res => {
-//             debugger
 //             // let manholeList = JSON.parse(res.data);
 //             store.setLayerPanelShow(false);
 //             res.data.features.forEach((item, index) => {
@@ -183,7 +181,6 @@
     axios
         .get(window.gisBaseUrl + '/gisserver/wfsserver/YZ_SPJK_NEW_wfs?version=1.3.0&request=GetFeature&format=json&typename=鎽勫儚澶�0423')
         .then(res => {
-            debugger
             store.setLayerPanelShow(false);
             res.data.features.forEach((item, index) => {
                 window.clusterLayer.add(
@@ -614,11 +611,11 @@
                     })
             }
             let nPickFeature = sgworld.Viewer.scene.pick(event.position);
-            console.log(nPickFeature);
-            if (nPickFeature == undefined) {
-                window.flyPoint && Viewer.entities.remove(window.flyPoint);
-                window.flyPoint = undefined;
-            }
+            // console.log(nPickFeature);
+            // if (nPickFeature == undefined) {
+            //     window.flyPoint && Viewer.entities.remove(window.flyPoint);
+            //     window.flyPoint = undefined;
+            // }
             // console.log(event.position);//灞忓箷浣嶇疆
             if (!nPickFeature || !nPickFeature.id) {
                 return
@@ -715,11 +712,14 @@
                         return
                     } else if (propertyNames.indexOf("閮ㄤ欢鍚嶇О") !== -1) {
                         objdata = {
+                            // 鐐逛綅绫诲瀷锛堜腑鑻辨枃閰嶇疆琛╬oiKeys.js)
                             POITYPE: "CSBJ",
+                            // 灞曠ず瀛楁
                             name: properties["閮ㄤ欢鍚嶇О"]._value,
                             address: properties["瀹夎鍦板潃"]._value,
                             code: properties["閮ㄤ欢缂栫爜"]._value,
                             type: properties["閮ㄤ欢绫诲瀷"]._value,
+                            // 寮规缁忕含搴�
                             lon: lon,
                             lat: lat,
                         }
@@ -748,6 +748,7 @@
                         objdata = {
                             POITYPE: "POINT",
                             name: properties["_name"]._value,
+                            address: properties["_address"]._value,
                             lat: properties["_lat"]._value,
                             lon: properties["_lng"]._value,
                         }

--
Gitblit v1.9.3