From 03eaca11e46e30d030a71dac74f5261ed1f222fb Mon Sep 17 00:00:00 2001 From: yezhiqiu <983577727@qq.com> Date: Tue, 24 Mar 2026 10:20:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9B=BD=E5=86=85=E7=BB=8F?= =?UTF-8?q?=E7=BA=AC=E5=BA=A6=E8=BD=AC=E6=8D=A2=E7=A7=BB=E5=8A=A8=E7=BA=A2?= =?UTF-8?q?=E7=82=B9=E4=BD=8D=E7=BD=AE=EF=BC=8C=E5=88=B0=E4=BA=86Edit=20Wi?= =?UTF-8?q?Fi=20Zone=E7=95=8C=E9=9D=A2=E5=90=8E=E4=BD=8D=E7=BD=AE=E5=8F=98?= =?UTF-8?q?=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ui/fragment/map/googlemap/WiFiZone2GoogleMapFragment.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/abbidot/tracker/ui/fragment/map/googlemap/WiFiZone2GoogleMapFragment.kt b/app/src/main/java/com/abbidot/tracker/ui/fragment/map/googlemap/WiFiZone2GoogleMapFragment.kt index a734eaa..fe11c3f 100644 --- a/app/src/main/java/com/abbidot/tracker/ui/fragment/map/googlemap/WiFiZone2GoogleMapFragment.kt +++ b/app/src/main/java/com/abbidot/tracker/ui/fragment/map/googlemap/WiFiZone2GoogleMapFragment.kt @@ -41,7 +41,8 @@ class WiFiZone2GoogleMapFragment : BaseGoogleMapFragment() { override fun onMarkerDragEnd(marker: Marker) { marker.position.let { - geoCoderLatLon(it.latitude, it.longitude) + val newLatLng = toGpsLatLon(LatLng(it.latitude, it.longitude)) + geoCoderLatLon(newLatLng.latitude, newLatLng.longitude) } } @@ -51,7 +52,8 @@ class WiFiZone2GoogleMapFragment : BaseGoogleMapFragment() { setOnMapLongClickListener { latLng -> mMarker?.position = latLng - geoCoderLatLon(latLng.latitude, latLng.longitude) + val newLatLng = toGpsLatLon(latLng) + geoCoderLatLon(newLatLng.latitude, newLatLng.longitude) } //点击地图任意地方都不消失自定义头部地点布局