[6.7.0][地图sdk] 升级地图sdk版本,并修复编译错误

This commit is contained in:
renwj
2024-10-16 17:22:27 +08:00
parent c4bcb2cb64
commit 5069f7b425
17 changed files with 203 additions and 25 deletions

View File

@@ -27,7 +27,7 @@ interface IMarkerController {
/**
* 批量更新他车
*/
fun updateBatchMarkerPositon(batchMarkerOptions: com.zhidaoauto.map.sdk.open.renders.marker.BatchMarkerOptions)
fun updateBatchMarkerPositon(batchMarkerOptions: BatchMarkerOptions)
//根据车辆类型预添加车辆模型
fun addPreVehicleModel(type:Int,modelRes:Int):String?
//添加普通模型

View File

@@ -93,6 +93,9 @@ class RoadHelper private constructor() {
cacheHdDataProgressJob?.cancel()
cacheHdDataProgressJob = null
mHdDataDownloadListener?.clear()
mHdDataDownloadListener = null
cancelCacheHDData()
hdMapProvider.release()

View File

@@ -26,6 +26,8 @@ class MarkerSimpleData {
var color: String = ""
//颜色设置类型 0 直接替换 1=由原色变为指定色 有方向 * 2=由指定色变为原色 有方向 * 3=由原色变为指定色 无方向 * 4=由指定色变为原色 无方向
var colorType: Int = 0
// 变色角度
var colorAngle:Int = 0
//文本
var text: String = ""
//状态

View File

@@ -341,16 +341,17 @@ open class MapAutoView : FrameLayout, LonLatPointListener, ITraffic,ILockLocatio
mEventController = MapEventController()
}
mMapView?.let {
mMapView?.let { itx ->
if (CompileConfig.DEBUG) {
Log.i(TAG, "autoop-mapop-create--${mMapView}")
}
it.setEventController(mEventController)
addView(it)
itx.setEventController(mEventController)
addView(itx)
Log.d(TAG, "--- controller assign -->")
mMapController =
MapController(context, it, this@MapAutoView, mEventController, mMapStyleParams)
MapController(context, itx, this@MapAutoView, mEventController, mMapStyleParams)
locationClient?.takeIf { it.mMapController == null }?.also { it.mMapController = mMapController }
mMapController?.let { mapController ->
mMarkerController = MarkerController(mapController)
mapController.setMarkerController(mMarkerController)
@@ -358,8 +359,8 @@ open class MapAutoView : FrameLayout, LonLatPointListener, ITraffic,ILockLocatio
mLocationView = LocationHelper(context, mMarkerController, mMapController,mMapStyleParams)
mMapController?.setLocalView(mLocationView)
it.setMapController(mMapController)
it.mITraffic = this@MapAutoView
itx.setMapController(mMapController)
itx.mITraffic = this@MapAutoView
// init PanelManager
mPanelManager = PanelManager(this@MapAutoView, context, mMapController)
}