[dev_arch_opt_3.0]
[Change] [ 1、删除地图中废弃的定位回掉方法 2、修改小地图监听位置更改的方式,设置为10HZ,更新地图解决跳变问题 ] Signed-off-by: donghongyu <donghongyu@zhidaoauto.com>
This commit is contained in:
@@ -22,6 +22,9 @@ object CallerChassisLocationGCJ20ListenerManager : CallerBase<IMoGoChassisLocati
|
||||
|
||||
/**
|
||||
* 添加监听并指定回掉频率
|
||||
* @param tag
|
||||
* @param callBackHz // 设置数据回调频率,单位HZ,1HZ的周期是1秒;50HZ的周期是1/50=0.02秒;10HZ的周期是1/10=0.1秒。
|
||||
* @param listener
|
||||
*/
|
||||
fun addListener(
|
||||
tag: String,
|
||||
@@ -41,7 +44,7 @@ object CallerChassisLocationGCJ20ListenerManager : CallerBase<IMoGoChassisLocati
|
||||
* @param gnssInfo
|
||||
*/
|
||||
@Synchronized
|
||||
fun invokeChassisLocationGCJ02(gnssInfo: MogoLocation?,sourceType: DataSourceType) {
|
||||
fun invokeChassisLocationGCJ02(gnssInfo: MogoLocation?, sourceType: DataSourceType) {
|
||||
gnssInfo?.let {
|
||||
// 转换 WGS84-->GCJ02 坐标
|
||||
val gcj20Location =
|
||||
|
||||
@@ -1,27 +0,0 @@
|
||||
package com.mogo.eagle.core.function.call.map
|
||||
|
||||
import com.mogo.eagle.core.data.map.MogoLocation
|
||||
import com.mogo.eagle.core.function.call.base.CallerBase
|
||||
|
||||
/**
|
||||
* 高德地图 位置改变 监听管理
|
||||
* @author dongghongyu
|
||||
* @date 2021/9/30 5:48 下午
|
||||
*/
|
||||
object CallerMapLocationListenerManager : CallerBase<Any>() {
|
||||
|
||||
// 记录地图最后一次位置
|
||||
@Volatile
|
||||
private var mLocation: MogoLocation? = null
|
||||
|
||||
/**
|
||||
* 获取当前经纬度
|
||||
*/
|
||||
fun getCurrentLocation(): MogoLocation? {
|
||||
return mLocation
|
||||
}
|
||||
|
||||
fun setCurrentLocation(location: MogoLocation) {
|
||||
mLocation = location
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user