From 0cae92b7ed0a080f74df6a30c0d68d2d0b45ec70 Mon Sep 17 00:00:00 2001 From: 少年 <1392120328@qq.com> Date: 星期三, 13 三月 2024 11:32:49 +0800 Subject: [PATCH] Merge branch 'master' of http://103.135.160.14:9034/r/PM20221203225_MobileWeb --- src/utils/map2.js | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/utils/map2.js b/src/utils/map2.js index 19c0c81..2a78f53 100644 --- a/src/utils/map2.js +++ b/src/utils/map2.js @@ -2245,7 +2245,8 @@ //openlayer 鍦板浘鐐瑰嚮浜嬩欢 export function setClick(state) { function handleClick(e) { - console.log(e,'鍦板浘鐐瑰嚮') + let coordinate = ol.proj.toLonLat(e.coordinate) + // console.log(coordinate, '鍦板浘鐐瑰嚮') store.setLayerPanelShow(false); // 鍦熷湴绠$悊 if (store.tdglInfo.flag) { @@ -2254,9 +2255,9 @@ // "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 + "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] + + coordinate[0] + "&lat=" + - e.coordinate[1] + + coordinate[1] + "&geom=true&requesttype=json" ).then(response => { let center = { lon: 0, lat: 0 }; -- Gitblit v1.9.3