新人求助,Android百度地图开发,怎么设置新的中心点

2025-05-19 04:14:46
推荐回答(1个)
回答1:

LatLng ll = new LatLng(location.getLatitude(), location.getLongitude());
MapStatusUpdate u = MapStatusUpdateFactory.newLatLng(ll);
mBaiduMap.animateMapStatus(u);