[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

@@ -9,13 +9,16 @@ class MogoData private constructor() {
}
}
private lateinit var iMogoData: IMogoData
private var iMogoData: IMogoData? = null
fun init(iMogoData: IMogoData) {
this.iMogoData = iMogoData
}
fun get():IMogoData{
fun get():IMogoData?{
if(iMogoData == null){
return null
}
return iMogoData
}