[driver passenger ] bus 乘客屏小地图圈路线所有站点
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user