[当我尝试使用bound对googleMap.moveCamera进行操作时,出现错误Error using newLatLngBounds(LatLngBounds, int)
。我该如何解决?
改为使用newLatLngBounds(LatLngBounds, int, int, int)
。它告诉布局的newLatLngBoudnd()
宽度和高度。就我而言:
...
int width = getResources().getDisplayMetrics().widthPixels;
int height = getResources().getDisplayMetrics().heightPixels;
int padding = 50;
mMap.moveCamera(CameraUpdateFactory.newLatLngBounds(bounds, width, height, padding));
...