265 调整司机小地图路径宽度 - 12 调整起终点的层级为top

This commit is contained in:
lianglihui
2022-04-11 15:41:16 +08:00
parent d4c83992f5
commit 38b72332e4

View File

@@ -171,7 +171,7 @@ public class SmallMapDirectionView
if (mCarMarker != null) {
// mCarMarker.setRotateAngle(location.getBearing());
mCarMarker.setPosition(currentLatLng);
mCarMarker.setToTop();
// mCarMarker.setToTop();
}
CameraPosition cameraPosition;
@@ -245,8 +245,11 @@ public class SmallMapDirectionView
// 设置开始结束Marker位置
mStartMarker.setPosition(mCoordinatesLatLng.get(0));
mEndMarker.setPosition(mCoordinatesLatLng.get(mCoordinatesLatLng.size() - 1));
mStartMarker.setToTop();
mStartMarker.setVisible(true);
mEndMarker.setVisible(true);
mEndMarker.setToTop();
//存放所有点的经纬度
LatLngBounds.Builder boundsBuilder = new LatLngBounds.Builder();
@@ -262,7 +265,7 @@ public class SmallMapDirectionView
new PolylineOptions()
.addAll(mCoordinatesLatLng)
.color(Color.argb(255, 31, 127, 255))
.width(6));
.width(12));
}
// else {