配置:
bdLocationApi.setLocOption({
locationMode:2,
coorType:"gcj02
scanSpan:5000,
openGps:true,
openGnss:false,
locationNotify:false,
ignoreKillProcess:false,
ignoreCacheException:true,
wifiCacheTimeOut:"3000
enableSimulateGps:false,
needNewVersionRgc:false,
isNeedAddress:true,
isNeedNewVersionReGeocode:true,
isNeedLocationDescribe:false,
isNeedLocationPoiList:false,
isNeedDeviceDirect:false ,
isNeedAltitude:false,
isEnableBeidouMode:false,
prodName:"test
firstLocType:1,
locationPurpose:1,
});
运行结果:
每3秒 回调一次
期望:
如配置 scanSpan:5000, 每隔5秒获取一次定位并回调。
8***@qq.com (作者)
可以了
2023-08-10 13:57