[6.7.0][地图sdk] 更改自车模型添加nt3d字节数组支持
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user