[6.2.0]
[shuttle] [视角切换]
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user