luck1
luck1
  • 发布:2024-05-29 11:41
  • 更新:2024-06-05 11:44
  • 阅读:147

为什么使用uniapp开发h5项目使用uni.getLocationAPI在微信自带浏览器打开发现定位不准

分类:uni-app

uni.getLocation({
type: 'wgs84',
altitude: true,
geocode: true,
isHighAccuracy: true,
success: function(res) {
console.log('==getLocation==');
console.log(res);
var mapKey = '66WBZ-CFCCL-27XPE-ML2GD-IIWFS-ANB2L';
_this.latitude = res.latitude
_this.longitude = res.longitude

2024-05-29 11:41 负责人:无 分享
已邀请:
Diligent_UI

Diligent_UI - 【插件开发】【专治疑难杂症】【多款插件已上架:https://ext.dcloud.net.cn/publisher?id=193663(微信搜索飘逸科技UI小程序直接体验)】【骗子请绕道】问题咨询请加QQ群:120594820,代表作灵感实用工具小程序

怎么判断定位不准的

1***@qq.com

1***@qq.com

刚刚踩了这个坑,需要在https上才会有精准定位

要回复问题请先登录注册