diff --git a/core/function-impl/mogo-core-function-biz/src/main/java/com/mogo/eagle/function/biz/v2x/v2n/pnc/V2NIdentifyDrawer.kt b/core/function-impl/mogo-core-function-biz/src/main/java/com/mogo/eagle/function/biz/v2x/v2n/pnc/V2NIdentifyDrawer.kt index 6bd576c0ab..78c52628e4 100644 --- a/core/function-impl/mogo-core-function-biz/src/main/java/com/mogo/eagle/function/biz/v2x/v2n/pnc/V2NIdentifyDrawer.kt +++ b/core/function-impl/mogo-core-function-biz/src/main/java/com/mogo/eagle/function/biz/v2x/v2n/pnc/V2NIdentifyDrawer.kt @@ -406,9 +406,7 @@ internal object V2NIdentifyDrawer: IEventDismissListener { } else if (msg.what == MSG_WHAT_DRAW_PEOPLE_CROSS) { val data = msg.obj as? MessagePad.Event ?: return@Callback true AiRoadMarker.aiMakers.getOrPut(data.eventId) { - AiRoadMarker() - }.apply { - val isDriver = AppIdentityModeUtils.isDriver(FunctionBuildConfig.appIdentityMode) + val isDriver = AppIdentityModeUtils.isDriver(FunctionBuildConfig.appIdentityMode) val carLocation = CallerChassisLocationWGS84ListenerManager.getChassisLocationWGS84() val distance = CoordinateUtils.calculateLineDistance(carLocation.longitude, carLocation.latitude, data.longitude, data.latitude) if (distance > 150) { @@ -428,7 +426,7 @@ internal object V2NIdentifyDrawer: IEventDismissListener { cameraIp.toString(), data.longitude, data.latitude) - + AiRoadMarker() }.also { it.marker(Marker(data.eventId, EventTypeEnumNew.TYPE_SOCKET_ROAD_PEOPLE_CROSS.poiType, data.longitude, data.latitude, 0.0), drawMarker = true, false, isHighFrequency = true) }.receive()