[3.4.0-map-sdk] fix bug of mapview init when biz use
This commit is contained in:
@@ -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()}")
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user