[6.5.0] update jiangshiche
This commit is contained in:
@@ -5,6 +5,7 @@ import android.view.View
|
||||
import com.mogo.eagle.core.data.map.*
|
||||
import com.mogo.eagle.core.function.call.autopilot.*
|
||||
import com.mogo.eagle.core.utilcode.util.*
|
||||
import com.mogo.map.MogoMap
|
||||
import com.mogo.map.overlay.point.Point.Options
|
||||
import com.mogo.map.MogoMap.Companion.mapInstance
|
||||
import com.mogo.map.overlay.core.*
|
||||
@@ -49,13 +50,15 @@ internal class MoGoOverlayManagerImpl: IMoGoOverlayManager {
|
||||
key.delegate = point
|
||||
it.setToTop()
|
||||
if (options.moveToCenter) {
|
||||
val wgs84 = CallerChassisLocationWGS84ListenerManager.getChassisLocationWGS84()
|
||||
val cj02 = CallerChassisLocationGCJ02ListenerManager.getChassisLocationGCJ02()
|
||||
moveToCenter(
|
||||
mapTag,
|
||||
options.id,
|
||||
options.longitude,
|
||||
options.latitude,
|
||||
if (options.isGps) CallerChassisLocationWGS84ListenerManager.getChassisLocationWGS84().longitude else CallerChassisLocationGCJ02ListenerManager.getChassisLocationGCJ02().longitude,
|
||||
if (options.isGps) CallerChassisLocationWGS84ListenerManager.getChassisLocationWGS84().latitude else CallerChassisLocationGCJ02ListenerManager.getChassisLocationGCJ02().latitude
|
||||
if (options.isGps) wgs84.longitude else cj02.longitude,
|
||||
if (options.isGps) wgs84.latitude else cj02.latitude
|
||||
)
|
||||
}
|
||||
}
|
||||
@@ -452,4 +455,8 @@ internal class MoGoOverlayManagerImpl: IMoGoOverlayManager {
|
||||
it.value.setVisible(false)
|
||||
}
|
||||
}
|
||||
|
||||
override fun updateAnimPoint(options: Options, mapTag:String) {
|
||||
mapInstance.getMogoMap(mapTag)?.addAnimPoint(options)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user