From a18adf9f3b30a5ff51c163059e4af9ffcd2af536 Mon Sep 17 00:00:00 2001
From: 少年 <1392120328@qq.com>
Date: 星期三, 06 三月 2024 17:13:26 +0800
Subject: [PATCH] youhua

---
 src/utils/map2.js |   30 +++++++++++++++++++++++++-----
 1 files changed, 25 insertions(+), 5 deletions(-)

diff --git a/src/utils/map2.js b/src/utils/map2.js
index c3571bc..30f1293 100644
--- a/src/utils/map2.js
+++ b/src/utils/map2.js
@@ -458,7 +458,7 @@
                 axios
                     .get(
                         // "http://10.10.4.115:8022/geowinmap_xncs/ds?r=0.9158559377752831&serviceproviderid=map.vectorserviceprovider&serviceid=queryfeature&featcls=225%25E8%258C%2583%25E5%259B%25B4%25E5%2588%2586%25E5%258C%25BA%25E8%25A7%2584%25E5%2588%2592.geojson&lng=" +
-                        window.gisBaseUrl + "yzxncsApi/geowinmap_xncs/ds?r=0.9158559377752831&serviceproviderid=map.vectorserviceprovider&serviceid=queryfeature&featcls=225%25E8%258C%2583%25E5%259B%25B4%25E5%2588%2586%25E5%258C%25BA%25E8%25A7%2584%25E5%2588%2592.geojson&lng=" +
+                        window.gisBaseUrl + "BEApi/cs/geowinmap_xncs/ds?r=0.9158559377752831&serviceproviderid=map.vectorserviceprovider&serviceid=queryfeature&featcls=225%25E8%258C%2583%25E5%259B%25B4%25E5%2588%2586%25E5%258C%25BA%25E8%25A7%2584%25E5%2588%2592.geojson&lng=" +
                         window.clickPOI.lon +
                         "&lat=" +
                         window.clickPOI.lat +
@@ -505,7 +505,7 @@
                             axios
                                 .get(
                                     // "http://10.10.4.115:8022//poisearch/guihuacon/getInfo?ydbm=" +
-                                    window.gisBaseUrl + "yzxncsApi/poisearch/guihuacon/getInfo?ydbm=" +
+                                    window.gisBaseUrl + "BEApi/cs/poisearch/guihuacon/getInfo?ydbm=" +
                                     response.data.NO
                                 )
                                 .then(
@@ -2251,7 +2251,7 @@
             axios
                 .get(
                     // "http://10.10.4.115:8022/geowinmap_xncs/ds?r=0.9158559377752831&serviceproviderid=map.vectorserviceprovider&serviceid=queryfeature&featcls=225%25E8%258C%2583%25E5%259B%25B4%25E5%2588%2586%25E5%258C%25BA%25E8%25A7%2584%25E5%2588%2592.geojson&lng=" +
-                    window.gisBaseUrl + "yzxncsApi/geowinmap_xncs/ds?r=0.9158559377752831&serviceproviderid=map.vectorserviceprovider&serviceid=queryfeature&featcls=225%25E8%258C%2583%25E5%259B%25B4%25E5%2588%2586%25E5%258C%25BA%25E8%25A7%2584%25E5%2588%2592.geojson&lng=" +
+                    window.gisBaseUrl + "BEApi/cs/geowinmap_xncs/ds?r=0.9158559377752831&serviceproviderid=map.vectorserviceprovider&serviceid=queryfeature&featcls=225%25E8%258C%2583%25E5%259B%25B4%25E5%2588%2586%25E5%258C%25BA%25E8%25A7%2584%25E5%2588%2592.geojson&lng=" +
                     // window.gisBaseUrl + "cs/geowinmap_xncs/ds?&lng=" +
                     e.coordinate[0] +
                     "&lat=" +
@@ -2283,7 +2283,7 @@
 
                     axios.get(
                         // "http://10.10.4.115:8022//poisearch/guihuacon/getInfo?ydbm=" +
-                        window.gisBaseUrl + "yzxncsApi/poisearch/guihuacon/getInfo?ydbm=" + response.data.NO
+                        window.gisBaseUrl + "BEApi/cs/poisearch/guihuacon/getInfo?ydbm=" + response.data.NO
                     ).then((info) => {
                         let data = info.data.data;
                         if (data.yongdishuju === null) {
@@ -2481,4 +2481,24 @@
         zoom: 15,
         duration: 1500
     })
-}
\ No newline at end of file
+}
+
+//鐩戝惉鍦板浘鍙屽嚮浜嬩欢
+
+export function touchClick() {
+    let dom = document.getElementById('openlayerContainer');
+    dom.addEventListener('touchstart', onTouchStart);
+    function onTouchStart(e) {
+        let len = e.touches.length;
+        if (len === 2) {
+            window.mapapi.getView().animate({
+                center: window.mapapi.getView().getCenter(),
+                zoom: window.mapapi.getView().getZoom() - 1,
+                duration: 1000,
+            });
+        }
+    }
+}
+
+
+

--
Gitblit v1.9.3