[RoutingOpt]修正车前引导线拖尾问题
[RouterOpt]优化代码逻辑
This commit is contained in:
@@ -40,7 +40,7 @@ object CallerMapLocationListenerManager : CallerBase() {
|
||||
return
|
||||
}
|
||||
mMapStyleChangeListeners[tag] = listener
|
||||
listener.onLocationChanged(mLocation)
|
||||
listener.onLocationChanged(mLocation, 0)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -73,19 +73,19 @@ object CallerMapLocationListenerManager : CallerBase() {
|
||||
* 触发 地图样式改变 监听
|
||||
*/
|
||||
fun invokeMapLocationChangeListener() {
|
||||
invokeMapLocationChangeListener(mLocation)
|
||||
invokeMapLocationChangeListener(mLocation, 0)
|
||||
}
|
||||
|
||||
/**
|
||||
* 触发 地图样式改变 监听
|
||||
* @param location 选中状态
|
||||
*/
|
||||
fun invokeMapLocationChangeListener(location: MogoLocation?) {
|
||||
fun invokeMapLocationChangeListener(location: MogoLocation?, from: Int) {
|
||||
mLocation = location
|
||||
mMapStyleChangeListeners.forEach {
|
||||
val tag = it.key
|
||||
val listener = it.value
|
||||
listener.onLocationChanged(location)
|
||||
listener.onLocationChanged(location, from)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user