添加了自动切换在线车辆卡片的功能

This commit is contained in:
董宏宇
2020-01-17 19:09:20 +08:00
parent 4eb6eacdea
commit c658b06f87
2 changed files with 3 additions and 1 deletions

View File

@@ -277,6 +277,8 @@ public class MarkerServiceHandler {
if (markerCardResult.getDataType() != null &&
markerCardResult.getDataType().size() == 1 &&
markerCardResult.getDataType().contains(ServiceConst.CARD_TYPE_USER_DATA)) {
getMarkerManager().removeMarkers(ServiceConst.CARD_TYPE_USER_DATA);
getMogoCardManager().switch2(ServiceConst.CARD_TYPE_USER_DATA);
} else {
// 清空所有地图上绘制的Marker
getMarkerManager().removeMarkers();