[RoutingOpt]修正车前引导线拖尾问题

[RouterOpt]优化代码逻辑
This commit is contained in:
renwj
2022-04-15 19:37:07 +08:00
parent f184dce4a2
commit 14d32eef0a
16 changed files with 472 additions and 240 deletions

View File

@@ -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)
}
}