[Opt]小地图Fragment改为View
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user