|
@ -884,8 +884,20 @@ public class AlterTwoActivity extends Activity implements
|
884
|
884
|
aMap.setMyLocationType(AMap.LOCATION_TYPE_LOCATE);
|
885
|
885
|
// aMap.moveCamera();
|
886
|
886
|
aMap.moveCamera(CameraUpdateFactory.zoomTo(16));
|
887
|
|
getGaode(Double.parseDouble(poi_jing), Double.parseDouble(poi_wei));
|
888
|
|
LatLng ll = new LatLng(Double.parseDouble(gd_wei), Double.parseDouble(gd_jing));
|
|
887
|
|
|
888
|
int position_jing = poi_jing.length() - poi_jing.indexOf(".") + 1;
|
|
889
|
int position_wei = poi_wei.length() - poi_wei.indexOf(".") + 1;
|
|
890
|
|
|
891
|
|
|
892
|
|
|
893
|
LatLng ll;
|
|
894
|
if (position_jing > 13 || position_wei > 13) {
|
|
895
|
ll = new LatLng(Double.parseDouble(poi_wei), Double.parseDouble(poi_jing));
|
|
896
|
} else {
|
|
897
|
getGaode(Double.parseDouble(poi_jing), Double.parseDouble(poi_wei));
|
|
898
|
ll = new LatLng(Double.parseDouble(gd_wei), Double.parseDouble(gd_jing));
|
|
899
|
}
|
|
900
|
|
889
|
901
|
// LatLng lll = new LatLng()
|
890
|
902
|
// MapStatusUpdate u = MapStatusUpdateFactory.newLatLng(ll);
|
891
|
903
|
// mBaiduMap.animateMapStatus(u);
|