Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在开发一个用于停车的安卓应用程序,并且我已经绘制了当前位置和停车位的黑白路径。但是我如何设置相机视图以便两个点都应该聚焦。?
提前致谢。
尝试使用latLng_1和latLng_2作为LatLng两个标记的对象。
latLng_1
latLng_2
LatLng
LatLngBounds.Builder builder = new LatLngBounds.Builder(); builder.include(latLng_1); builder.include(latLng_2); map.moveCamera(CameraUpdateFactory.newLatLngBounds( builder.build(), 25, 25, 0));