diff --git a/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/view/TravelRealityView.kt b/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/view/TravelRealityView.kt index ab724d3fd9..a6cada6de5 100644 --- a/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/view/TravelRealityView.kt +++ b/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/view/TravelRealityView.kt @@ -731,21 +731,21 @@ class TravelRealityView @JvmOverloads constructor( latLng, CallerAutoPilotStatusListenerManager.getLineId(), onSuccess = { bitmap, latLng, lineId -> - if (lineId == CallerAutoPilotStatusListenerManager.getLineId()) { + if (CallerAutoPilotStatusListenerManager.getLineId() != 0L) { val view = EventVideoView(context, title = title, orientation = orientation) view.setBitmap(bitmap) updateVideoMarker(view, latLng) } else { - Log.w(TAG, "downloadImage:onSuccess:lineId不同!") + Log.w(TAG, "downloadImage:onSuccess:lineId为0!") } }, onFailed = { latLng, lineId -> - if (lineId == CallerAutoPilotStatusListenerManager.getLineId()) { + if (CallerAutoPilotStatusListenerManager.getLineId() != 0L) { val view = EventVideoView(context, title = title, orientation = orientation) view.setPlaceHolder() updateVideoMarker(view, latLng) } else { - Log.w(TAG, "downloadImage:onFailed:lineId不同!") + Log.w(TAG, "downloadImage:onFailed:lineId为0!") } }) } @@ -794,6 +794,7 @@ class TravelRealityView @JvmOverloads constructor( view.setPlaceHolder() markerOption.icon(BitmapDescriptorFactory.fromView(view)) } else { + Log.d(TAG, "缓存中未查到对应ip") return@let } } else { @@ -823,6 +824,7 @@ class TravelRealityView @JvmOverloads constructor( liveOptionsList.add(markerOption) } } + Log.d(TAG, "绘制卡片的个数为:${liveOptionsList.size}") // 绘制事件卡片 drawMarkers(DRAW_LIVE_DETAIL, liveOptionsList) adjustCameraWithVertex(vertexList)