[driver passenger ] bus 乘客屏小地图圈路线所有站点

This commit is contained in:
wangmingjun
2022-04-12 11:10:25 +08:00
parent 95ce848c1f
commit 698692acbd
2 changed files with 4 additions and 1 deletions

View File

@@ -195,6 +195,9 @@ public class BusPassengerMapDirectionView
LatLngBounds.Builder boundsBuilder = new LatLngBounds.Builder();
boundsBuilder.include(currentLatLng);
boundsBuilder.include(endLatLng);
for (int i=0;i < mWayPointsLatLng.size();i++){
boundsBuilder.include(mWayPointsLatLng.get(i));
}
//第二个参数为四周留空宽度
mAMap.animateCamera(CameraUpdateFactory.newLatLngBounds(boundsBuilder.build(), 100));

View File

@@ -10,7 +10,7 @@
android:layout_width="576px"
android:layout_height="match_parent"
app:shadowColor="@color/bus_p_route_view_left_edge_shadow"
app:xOffset="-16px"
app:xOffset="0px"
app:yOffset="0px"
app:bgColor="@android:color/transparent"
app:layout_constraintRight_toRightOf="parent"