我知道这可能有点傻,我一定错过了什么,但我如何禁用一直放大到我的标记并立即加载谷歌地图和我当前位置的动画?
这是我当前的代码
@Override
public void onLocationChanged(Location location) {
currentLocation = location;
String curr_location = currentLocation.getLatitude()+ ","+currentLocation.getLongitude();
LatLng coordinates = new LatLng(currentLocation.getLatitude(),currentLocation.getLongitude());
CameraUpdate current = CameraUpdateFactory.newLatLngZoom(coordinates,15);
googleMap.animateCamera(current);
UpdateLocation(userid,email,curr_location);
}
如果可能的话,我想移除动画相机。谢谢!
最佳答案
关于Android 谷歌地图去当前位置没有动画,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37692476/