查询车辆位置指北,固定旋转
This commit is contained in:
parent
d9869265be
commit
55372ae79c
@ -150,7 +150,7 @@ class CheckCarLocActivity : BaseActivity() {
|
||||
changeCamera(
|
||||
CameraUpdateFactory.newCameraPosition(
|
||||
CameraPosition(
|
||||
ZHONGGUANCUN, 16f, 30f, 30f
|
||||
ZHONGGUANCUN, 16f, 0f, 0f
|
||||
)
|
||||
)
|
||||
)
|
||||
@ -167,6 +167,11 @@ class CheckCarLocActivity : BaseActivity() {
|
||||
private fun init(mapView: MapView) {
|
||||
if (aMap == null) {
|
||||
aMap = mapView.map
|
||||
val uiSettings = aMap?.uiSettings
|
||||
uiSettings?.run {
|
||||
isCompassEnabled = true
|
||||
isRotateGesturesEnabled = false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user