84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
首次打开地图定位成功后,用户把地图滑倒了别的地方,怎么能让地图重新回到用户所在的位置呢?百度地图官方App可以做到,在左下角。但是没有找到相关API。
闭关修行中......
LatLng point = new LatLng(myLatitude, myLongitude); //Latitude and longitude can be obtained through BDLocationmBaiduMap.setMapStatus(MapStatusUpdateFactory.newLatLng(point));
Positioning API gets the user’s current location coordinates point, mapView.getController().animateTo(point);
LatLng point = new LatLng(myLatitude, myLongitude); //Latitude and longitude can be obtained through BDLocation
mBaiduMap.setMapStatus(MapStatusUpdateFactory.newLatLng(point));
Positioning API gets the user’s current location coordinates point, mapView.getController().animateTo(point);