[地图隐藏部分控件]
This commit is contained in:
yangyakun
2024-03-20 15:16:10 +08:00
parent 2677ecc3f0
commit af6fadb5e5

View File

@@ -191,6 +191,8 @@ class MapDirectionView @JvmOverloads constructor(
}
// 设置自定义样式
mAMap.setCustomMapStyle(options)
mAMap.uiSettings?.isZoomControlsEnabled = false
mAMapNaviView.map.setPointToCenter(
mAMapNaviView.width / 2,
mAMapNaviView.height / 2