小程序wx.getLocation的严重bug!

发布于 7 年前作者 qiangdeng4229 次浏览最后编辑 7 年前来自 ask

wx.getLocation({

            type: ‘wgs84’,

            success: function(res) {

                var latitude = res.latitude

                var longitude = res.longitude

                console.log(‘腾讯wgs84:’ + latitude + ‘||’ + longitude)

            }

        })

wx.getLocation({

            type: ‘gcj02’,

            success: function(res) {

                var latitude = res.latitude

                var longitude = res.longitude

                console.log(‘腾讯gcj02:’ + latitude + ‘||’ + longitude)

            }

        })

最新版本微信和开发者工具,type均无效,获取相同的结果导致位置偏移

0 回复
暂无回复