修复国内经纬度转换移动红点位置,到了Edit WiFi Zone界面后位置变了
This commit is contained in:
@@ -41,7 +41,8 @@ class WiFiZone2GoogleMapFragment : BaseGoogleMapFragment() {
|
|||||||
|
|
||||||
override fun onMarkerDragEnd(marker: Marker) {
|
override fun onMarkerDragEnd(marker: Marker) {
|
||||||
marker.position.let {
|
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 ->
|
setOnMapLongClickListener { latLng ->
|
||||||
mMarker?.position = latLng
|
mMarker?.position = latLng
|
||||||
geoCoderLatLon(latLng.latitude, latLng.longitude)
|
val newLatLng = toGpsLatLon(latLng)
|
||||||
|
geoCoderLatLon(newLatLng.latitude, newLatLng.longitude)
|
||||||
}
|
}
|
||||||
|
|
||||||
//点击地图任意地方都不消失自定义头部地点布局
|
//点击地图任意地方都不消失自定义头部地点布局
|
||||||
|
|||||||
Reference in New Issue
Block a user