获取地理位置信息BUG
- 当前 Bug 的表现(可附上截图) 报这个错: {"errCode":2,"errMsg":"getLocation:fail:ERROR_NOCELL&WIFI_LOCATIONSWITCHOFF"} - 预期表现 获取经纬度 - 复现路径 - 提供一个最简复现 Demo wx.getLocation({ type: 'gcj02', success(res) { const latitude = res.latitude const longitude = res.longitude that.getReverseGeocoder(latitude, longitude); },fail:function(a){ console.log(a) // console.log( JSON.stringify(a)); that.getReverseGeocoder("", "");//获取位置失败,给逆地址解析函数传空值实参,逆地址解析函数根据传的空值,会传默认的全国实参去发起请求。 } })