MrStoneTsl
MrStoneTsl
  • 发布:2019-05-15 09:34
  • 更新:2020-01-08 10:43
  • 阅读:1860

【报Bug】hello uni-app BUG,接口-位置-选择位置无法使用

分类:uni-app

重现:hello uni-app 接口-位置-选择位置
之前开发的项目地图初始化无法定位,代码如下:
onLoad() {
uni.getLocation({
type: 'gcj02',
success: function (res) {
//console.log(JSON.stringify(res))
// console.log('当前位置的经度:' + res.longitude);
// console.log('当前位置的纬度:' + res.latitude);
this.latitude = res.latitude;
this.longitude = res.longitude;
}
});
this.mapContext = uni.createMapContext('map');
this.mapContext.moveToLocation();
}

有没有同样问题的兄弟帮忙解答一下,谢谢

2019-05-15 09:34 负责人:无 分享
已邀请:
Lyn4ever

Lyn4ever

解决了没,我也是这样

b***@sina.com

b***@sina.com - 222

请问解决了吗

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