识别物与碰撞点之间的引导箭头角度调整(未生效)

This commit is contained in:
liujing
2021-04-19 17:07:38 +08:00
parent 4cdb73b8f4
commit cefa9a2c78
2 changed files with 12 additions and 7 deletions

View File

@@ -125,12 +125,16 @@ public class V2XWarnDataDrawer extends BaseDrawer implements IMogoStatusChangedL
return marker;
}
public void drawerArrowsMarkerWithLocation(MogoLatLng location, String markerType, int type, int period) {
public void drawerArrowsMarkerWithLocation(MogoLatLng location, String markerType, int type, int rotate) {
MogoMarkerOptions options = new MogoMarkerOptions()
.latitude(location.getLat())
.longitude(location.getLon());
options.icon3DRes(getModelRes(type)); //TODO
options.anchorColor("#FB3C3CFF"); //红色#FF3036 蓝色:#256BFF
.longitude(location.getLon())
.set3DMode(true)
.controlAngle(true)
.rotate(rotate);
options.icon3DRes(getModelRes(type));
options.flat(true);
options.anchorColor("#FB3C3CFF");
IMogoMarker marker = MogoApisHandler.getInstance().getApis().getMapServiceApi().getMarkerManager(mContext).addMarker(markerType, options);
marker.setToTop();
}