[Opt]小地图Fragment改为View

This commit is contained in:
chenfufeng
2023-02-07 16:29:35 +08:00
parent 68f40db975
commit 7ae724c3f0
18 changed files with 95 additions and 596 deletions

View File

@@ -2,10 +2,8 @@ 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.MoGoFragmentPaths
import com.mogo.eagle.core.data.constants.MogoServicePaths
import com.mogo.eagle.core.data.map.MogoLatLng
import com.mogo.eagle.core.function.api.map.smp.IMogoSmallMapProvider
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
@@ -16,9 +14,9 @@ import com.mogo.eagle.core.utilcode.util.UiThreadHandler
* 小地图调用者管理这里对外及其他模块提供小地图功能的调用用啥写啥不要过度设计不允许直接将Provider暴露出去
*/
object CallerSmpManager : CallerBase<Any>() {
private val mogoSmallMapProvider: IMogoSmallMapProvider
get() = ARouter.getInstance().build(MoGoFragmentPaths.PATH_FRAGMENT_SMP)
.navigation() as IMogoSmallMapProvider
// private val mogoSmallMapProvider: IMogoSmallMapProvider
// get() = ARouter.getInstance().build(MoGoFragmentPaths.PATH_FRAGMENT_SMP)
// .navigation() as IMogoSmallMapProvider
// private val mogoOverViewMapProvider: IMogoSmallMapProvider
// get() = ARouter.getInstance().build(MoGoFragmentPaths.PATH_FRAGMENT_OVERVIEW)
@@ -33,7 +31,7 @@ object CallerSmpManager : CallerBase<Any>() {
*/
@JvmStatic
fun drawablePolyline(coordinates: List<MogoLatLng?>?) {
mogoSmallMapProvider.drawablePolyline(coordinates)
// mogoSmallMapProvider.drawablePolyline(coordinates)
}
/**
@@ -41,7 +39,7 @@ object CallerSmpManager : CallerBase<Any>() {
*/
@JvmStatic
fun clearPolyline() {
mogoSmallMapProvider.clearPolyline()
// mogoSmallMapProvider.clearPolyline()
}
/**
@@ -49,7 +47,7 @@ object CallerSmpManager : CallerBase<Any>() {
*/
@JvmStatic
fun showPanel() {
mogoSmallMapProvider.showPanel()
// mogoSmallMapProvider.showPanel()
}
/**
@@ -57,7 +55,7 @@ object CallerSmpManager : CallerBase<Any>() {
*/
@JvmStatic
fun hidePanel() {
mogoSmallMapProvider.hidePanel()
// mogoSmallMapProvider.hidePanel()
}
@JvmStatic