[2.13.0-arch-opt] v2x remove
This commit is contained in:
@@ -1,75 +0,0 @@
|
||||
package com.mogo.eagle.core.function.call.map
|
||||
|
||||
import android.os.Looper
|
||||
import com.alibaba.android.arouter.launcher.ARouter
|
||||
import com.mogo.eagle.core.data.constants.MogoServicePaths
|
||||
import com.mogo.eagle.core.data.map.MogoLatLng
|
||||
import com.mogo.eagle.core.function.api.v2x.IV2XEventProvider
|
||||
import com.mogo.eagle.core.function.call.base.CallerBase
|
||||
import com.mogo.eagle.core.utilcode.util.UiThreadHandler
|
||||
|
||||
/**
|
||||
* @author xiaoyuzhou
|
||||
* @date 2021/9/17 6:15 下午
|
||||
* 小地图调用者管理,这里对外及其他模块提供小地图功能的调用,用啥写啥,不要过度设计,不允许直接将Provider暴露出去
|
||||
*/
|
||||
object CallerSmpManager : CallerBase<Any>() {
|
||||
|
||||
private val v2xProvider: IV2XEventProvider
|
||||
get() = ARouter.getInstance().build(MogoServicePaths.PATH_V2X_MODULE)
|
||||
.navigation() as IV2XEventProvider
|
||||
|
||||
/**
|
||||
* 绘制路径线
|
||||
*/
|
||||
@JvmStatic
|
||||
fun drawablePolyline(coordinates: List<MogoLatLng?>?) {
|
||||
// mogoSmallMapProvider.drawablePolyline(coordinates)
|
||||
}
|
||||
|
||||
/**
|
||||
* 清除路径线
|
||||
*/
|
||||
@JvmStatic
|
||||
fun clearPolyline() {
|
||||
// mogoSmallMapProvider.clearPolyline()
|
||||
}
|
||||
|
||||
/**
|
||||
* 显示面板
|
||||
*/
|
||||
@JvmStatic
|
||||
fun showPanel() {
|
||||
// mogoSmallMapProvider.showPanel()
|
||||
}
|
||||
|
||||
/**
|
||||
* 隐藏面板
|
||||
*/
|
||||
@JvmStatic
|
||||
fun hidePanel() {
|
||||
// mogoSmallMapProvider.hidePanel()
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
fun startQueryV2XEvents() {
|
||||
if (Thread.currentThread() !== Looper.getMainLooper().thread) {
|
||||
UiThreadHandler.post {
|
||||
v2xProvider.queryWholeRoadEvents()
|
||||
}
|
||||
} else {
|
||||
v2xProvider.queryWholeRoadEvents()
|
||||
}
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
fun clearV2XMarkers() {
|
||||
// if (Thread.currentThread() !== Looper.getMainLooper().thread) {
|
||||
// UiThreadHandler.post {
|
||||
// mogoOverViewMapProvider.clearV2XMarkers()
|
||||
// }
|
||||
// } else {
|
||||
// mogoOverViewMapProvider.clearV2XMarkers()
|
||||
// }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user