[3.4.0-map-sdk] wait

This commit is contained in:
zhongchao
2023-08-28 16:52:01 +08:00
parent 7865da2347
commit b421d2dc3f
19 changed files with 48 additions and 1085 deletions

View File

@@ -51,6 +51,7 @@ internal class MoGoOverlayManagerImpl: IMoGoOverlayManager {
it.setToTop()
if (options.moveToCenter) {
moveToCenter(
mapTag,
options.id,
options.longitude,
options.latitude,
@@ -258,9 +259,9 @@ internal class MoGoOverlayManagerImpl: IMoGoOverlayManager {
}
}
private fun moveToCenter(id: String, eventLon: Double, eventLat: Double, carLon: Double, carLat: Double) {
private fun moveToCenter(mapTag:String, id: String, eventLon: Double, eventLat: Double, carLon: Double, carLat: Double) {
try {
CallerMapUIServiceManager.getMapUIController()?.showBounds(
mapInstance.getMogoMap(mapTag).uiController.showBounds(
id,
MogoLatLng(carLat, carLon),
listOf(MogoLatLng(eventLat, eventLon)),