解决BUG

【在线车辆】在线车辆,相同位置显示了两个车,其实只有一辆车也只有这辆车可以被选中
http://jira.zhidaohulian.com/projects/UI/issues/UI-140?filter=myopenissues

原因是因为之前说和在线车辆使用同样数据的车聊聊返回了数据导致同一个位置多个车辆绘制
This commit is contained in:
董宏宇
2020-02-11 16:43:15 +08:00
parent c622482ec8
commit 72ce077c8c

View File

@@ -258,20 +258,20 @@ public class MapMarkerManager implements IMogoMarkerClickListener, IMogoOnMessag
List<MarkerShareMusic> shareMusicList = markerCardResult.getShareMusic();
List<MarkerNoveltyInfo> noveltyInfoList = markerCardResult.getNoveltyInfo();
if (carChatList != null) {
for (MarkerCarChat markerCarChat : carChatList) {
MarkerLocation markerLocation = markerCarChat.getLocation();
MarkerShowEntity markerShowEntity = new MarkerShowEntity();
markerShowEntity.setBindObj(markerCarChat);
markerShowEntity.setMarkerLocation(markerLocation);
markerShowEntity.setMarkerType(markerCarChat.getType());
markerShowEntity.setTextContent(markerCarChat.getUserInfo().getUserName());
markerShowEntity.setIconUrl(markerCarChat.getUserInfo().getUserHead());
drawMapMarker(markerShowEntity);
}
}
// if (carChatList != null) {
// for (MarkerCarChat markerCarChat : carChatList) {
// MarkerLocation markerLocation = markerCarChat.getLocation();
//
// MarkerShowEntity markerShowEntity = new MarkerShowEntity();
// markerShowEntity.setBindObj(markerCarChat);
// markerShowEntity.setMarkerLocation(markerLocation);
// markerShowEntity.setMarkerType(markerCarChat.getType());
// markerShowEntity.setTextContent(markerCarChat.getUserInfo().getUserName());
// markerShowEntity.setIconUrl(markerCarChat.getUserInfo().getUserHead());
//
// drawMapMarker(markerShowEntity);
// }
// }
if (onlineCarList != null) {
IMogoMarker nearlyMogoMarker = null;