[6.7.0][地图sdk] 更改自车模型添加nt3d字节数组支持

This commit is contained in:
renwj
2024-10-25 17:29:45 +08:00
parent bf2659d6e2
commit 39088b7ed8
4 changed files with 114 additions and 1 deletions

View File

@@ -627,6 +627,27 @@ class AMapViewWrapper(mMapView: MapAutoView) : IMogoMapView, IMogoMapUIControlle
}
}
override fun changeCurrentIcon(data: ByteArray, is3D: Boolean) {
if (checkAMapView()) {
handler.post {
val changeResult = mMapView.getMapAutoViewHelper()!!.getMyLocationStyle()!!
.myLocationIcon(data, is3D)
if (!changeResult) {
val count = reChangeIconCount.incrementAndGet()
MapTraceUtil.log(
"", ChainConstant.CHAIN_CODE_HD_MAP_ICON_SET, TAG,
mapOf("changeCurrentIcon-count" to "$count")
)
if (count >= 3) {
return@post
}
handler.postDelayed({ changeCurrentIcon(data, is3D) }, 300L)
reChangeIconCount.set(0)
}
}
}
}
override fun result(path: String) {
invokeUploadLogFile(path)
}