野原新之助
野原新之助
  • 发布:2018-07-12 09:38
  • 更新:2019-08-14 14:40
  • 阅读:1096

getCurrentPosition接口不返回heading和speed的值

分类:HTML5+

安卓手机getCurrentPosition接口使用的{provider:'baidu',coordsType:"bd09ll"},获取不到heading和speed的值,永远返回"heading":null,"speed":0。

plus.geolocation.getCurrentPosition(function(a){  
    mui.toast(JSON.stringify(a.coords))  
    console.log(JSON.stringify(a.coords))                     
}, function(e){  
    console.log('Geolocation error: ' + e.message);  
} ,{provider:'baidu',coordsType:"bd09ll"});
2018-07-12 09:38 负责人:无 分享
已邀请:
3***@qq.com

3***@qq.com

我也遇到了相同的问题 ,你怎么解决的?

该问题目前已经被锁定, 无法添加新回复