From 3b9dc99ed4766e6f3c9e3ab8d886f7d1714a8160 Mon Sep 17 00:00:00 2001 From: yangyakun Date: Mon, 27 Nov 2023 18:17:37 +0800 Subject: [PATCH] =?UTF-8?q?[6.2.0]=20[shuttle]=20[=E8=A7=86=E8=A7=92?= =?UTF-8?q?=E5=88=87=E6=8D=A2]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BusPassengerMapDirectionView.kt | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/OCH/shuttle/passenger/src/jinlvvan/java/com/mogo/och/bus/passenger/ui/mapdirectionview/BusPassengerMapDirectionView.kt b/OCH/shuttle/passenger/src/jinlvvan/java/com/mogo/och/bus/passenger/ui/mapdirectionview/BusPassengerMapDirectionView.kt index 3f9595584c..ccaa6d6019 100644 --- a/OCH/shuttle/passenger/src/jinlvvan/java/com/mogo/och/bus/passenger/ui/mapdirectionview/BusPassengerMapDirectionView.kt +++ b/OCH/shuttle/passenger/src/jinlvvan/java/com/mogo/och/bus/passenger/ui/mapdirectionview/BusPassengerMapDirectionView.kt @@ -9,6 +9,7 @@ import android.widget.RelativeLayout import androidx.lifecycle.ViewModelProvider import androidx.lifecycle.findViewTreeViewModelStoreOwner import com.amap.api.maps.AMap +import com.amap.api.maps.CameraUpdateFactory import com.amap.api.maps.TextureMapView import com.amap.api.maps.model.BitmapDescriptor import com.amap.api.maps.model.BitmapDescriptorFactory @@ -190,15 +191,15 @@ class BusPassengerMapDirectionView @JvmOverloads constructor( boundsBuilder.include(it) } boundsBuilder.include(currentLatLng) -// mAMap.moveCamera( -// CameraUpdateFactory.newLatLngBoundsRect( -// boundsBuilder.build(), -// 100, -// 100, -// 100, -// 100 -// ) -// ) + mAMap.moveCamera( + CameraUpdateFactory.newLatLngBoundsRect( + boundsBuilder.build(), + 100, + 100, + 100, + 100 + ) + ) } catch (e: Exception) { e.printStackTrace() }