修复输入WGS 坐标时,不能正常跳转的问题

This commit is contained in:
ZCShou 2021-09-30 14:37:08 +08:00
parent 58b185761d
commit c6933c1704

View File

@ -701,8 +701,8 @@ public class MainActivity extends BaseActivity
if (rbBD.isChecked()) {
mCurLatLngMap = new LatLng(dialog_lat_double, dialog_lng_double);
} else {
double[] latLon = MapUtils.wgs2bd09(dialog_lat_double, dialog_lng_double);
mCurLatLngMap = new LatLng(latLon[1], latLon[0]);
double[] bdLonLat = MapUtils.wgs2bd09(dialog_lat_double, dialog_lng_double);
mCurLatLngMap = new LatLng(bdLonLat[1], bdLonLat[0]);
}
MapStatusUpdate mapstatusupdate = MapStatusUpdateFactory.newLatLng(mCurLatLngMap);