[3.4.0-map-sdk] fix bug of mapview init when biz use

This commit is contained in:
zhongchao
2023-09-19 11:46:56 +08:00
parent efb4bb8070
commit fda0c0ab62
9 changed files with 20 additions and 20 deletions

View File

@@ -15,14 +15,14 @@ object CacheHDMapManager {
fun scheduleGetLocation() {
if (!AppIdentityModeUtils.isDriver(FunctionBuildConfig.appIdentityMode)) {
ThreadUtils.getIoPool().execute {
mogoMapData.get().isCityDataCached {
mogoMapData.get()?.isCityDataCached {
if(!it){
while (true) {
val loc =
CallerChassisLocationWGS84ListenerManager.getChassisLocationWGS84()
if (loc.latitude != 0.0 || loc.longitude != 0.0) {
CallerLogger.d(TAG, "开始下载")
mogoMapData.get().cacheHDDataByCityByLonLat(loc,
mogoMapData.get()?.cacheHDDataByCityByLonLat(loc,
{ _, progress ->
CallerLogger.i(M_MAP + TAG, "下载进度:${progress.toInt()}")
},