LatLngBounds.Builder newbounds = new LatLngBounds.Builder(); for (int i = 0; i < trajectorylist.size(); i++) {//trajectorylist为轨迹集合 newbounds.include(trajectorylist.get(i)); } aMap.animateCamera(CameraUpdateFactory.newLatLngBounds(newbounds.build(), 15));//第二个参数为四周留空宽度
Android高德地图如何让轨迹全部显示在屏幕内 且自动缩放
最新推荐文章于 2024-09-19 16:13:41 发布