当我的蓝点图标消失时,我感到很困惑。过去是我可以显示蓝点图标。但现在它只是将相机缩放到我当前的位置,而没有蓝点图标。
这是我的代码:
private void handleNewLocation(Location location) {
Log.d(TAG, location.toString());
double currentLatitude = location.getLatitude();
double currentLongitude = location.getLongitude();
LatLng latLng = new LatLng(currentLatitude, currentLongitude);
mMap.moveCamera(CameraUpdateFactory.newLatLng(latLng));
mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(latLng, 21));
}
最佳答案
关于android - 在当前位置 Google map 上显示蓝点图标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30440777/