From bc99ffd691ae20619270d7bd765c54f2fde1fe5b Mon Sep 17 00:00:00 2001 From: userGyl Date: Fri, 30 Jan 2026 13:01:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ln_jq_app/assets/html/map.html | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/ln_jq_app/assets/html/map.html b/ln_jq_app/assets/html/map.html index 6576769..8f8b21e 100644 --- a/ln_jq_app/assets/html/map.html +++ b/ln_jq_app/assets/html/map.html @@ -250,7 +250,7 @@ body.panel-active .amap-scalecontrol { /** * 核心功能 1: 接收 Flutter 传来的定位数据 * Flutter 端调用: webViewController.evaluateJavascript("updateMyLocation(...)") - * 经度 维度 + * 纬度 经度 */ function updateMyLocation(lat, lng, angle) { var rawLat = parseFloat(lat); @@ -297,7 +297,7 @@ body.panel-active .amap-scalecontrol { console.log("地理:" + JSON.stringify(result)); fetchStationInfo(addressComponent.province, addressComponent.city, - addressComponent.district); + addressComponent.district,lat,lng); // 策略1: 优先使用最近的、类型合适的POI的名称 if (pois && pois.length > 0) { @@ -351,7 +351,7 @@ body.panel-active .amap-scalecontrol { /** * 调用后端接口获取站点 */ - function fetchStationInfo(province, city, district) { + function fetchStationInfo(province, city, district,lat,lng) { // 注意:某些直辖市在高德中 city 字段可能为空,需做兼容处理 console.log("JS->: 开始请求." + province + city + district); var cityName = (typeof city === 'string' && city.length > 0) ? city : province; @@ -365,7 +365,9 @@ body.panel-active .amap-scalecontrol { body: JSON.stringify({ province: province, city: cityName, - district: district + district: district, + longitude: lng, + latitude: lat, }) }) .then(response => {