[6.5.0][Opt]高德地图未显示,新增点日志
This commit is contained in:
@@ -294,6 +294,7 @@ class TravelRealityView @JvmOverloads constructor(
|
||||
}
|
||||
|
||||
private fun initAMapView() {
|
||||
Log.d(TAG, "initAMapView")
|
||||
mAMap = mMapView?.map
|
||||
val mapStyleOptions = CustomMapStyleOptions()
|
||||
if (!mapStylePath.isNullOrEmpty() && !mapStyleExtraPath.isNullOrEmpty()) {
|
||||
@@ -335,6 +336,7 @@ class TravelRealityView @JvmOverloads constructor(
|
||||
}
|
||||
|
||||
mAMap?.setOnMapLoadedListener {
|
||||
Log.d(TAG, "地图加载完成!")
|
||||
isMapLoaded = true
|
||||
mAMap?.setCustomMapStyle(mapStyleOptions)
|
||||
// 实时路况图层关闭,必须添加在loaded结束之后,其他位置不生效
|
||||
|
||||
Reference in New Issue
Block a user