From cb0435bb570def577b1d0e509e8cc4c1cdcdc513 Mon Sep 17 00:00:00 2001 From: chenfufeng Date: Tue, 26 Nov 2024 19:23:24 +0800 Subject: [PATCH] =?UTF-8?q?[6.8.0][Opt]=E8=B0=83=E6=95=B4=E8=A1=8C?= =?UTF-8?q?=E7=A8=8B=E5=85=A8=E8=A7=88=E5=9C=B0=E5=9B=BE=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E7=9A=84=E8=8C=83=E5=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mogo/eagle/core/function/view/TravelRealityView.kt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/view/TravelRealityView.kt b/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/view/TravelRealityView.kt index 95fc9a92a7..e6c1d08739 100644 --- a/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/view/TravelRealityView.kt +++ b/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/view/TravelRealityView.kt @@ -716,7 +716,9 @@ class TravelRealityView @JvmOverloads constructor( if (mLocation != null) { boundsBuilder.include(LatLng(mLocation!!.latitude, mLocation!!.longitude)) } - + mSiteList.forEach { + boundsBuilder.include(LatLng(it.latLng.lat!!, it.latLng.lon!!)) + } val cameraUpdate = CameraUpdateFactory.newLatLngBoundsRect( boundsBuilder.build(), AutoSizeUtils.dp2px(context, leftPadding.toFloat()), @@ -1335,7 +1337,9 @@ class TravelRealityView @JvmOverloads constructor( if (mLocation != null) { boundsBuilder.include(LatLng(mLocation!!.latitude, mLocation!!.longitude)) } - + mSiteList.forEach { + boundsBuilder.include(LatLng(it.latLng.lat!!, it.latLng.lon!!)) + } val cameraUpdate = CameraUpdateFactory.newLatLngBoundsRect( boundsBuilder.build(), AutoSizeUtils.dp2px(context, leftPadding.toFloat()),