liugl
2020-11-10 59a89da95e7627c87dd01f00226d49104d1a93f3
app/src/main/java/com/okgoincar/base/AMapKit.kt
@@ -33,6 +33,7 @@
        //设置为高精度定位模式
//        mLocationOption.isNeedAddress = true
        mLocationOption.interval = 5000
//        mLocationOption.locationMode = AMapLocationClientOption.AMapLocationMode.Hight_Accuracy
        mLocationOption.locationMode = AMapLocationClientOption.AMapLocationMode.Device_Sensors
        //设置定位参数
        mlocationClient.setLocationOption(mLocationOption)