vue-amap icon indicating copy to clipboard operation
vue-amap copied to clipboard

为什么我使用Geolocation进行定位,定位地址不正确

Open Tiramisu1 opened this issue 5 years ago • 3 comments

问题

VueAMap 版本

0.5.9

OS/Browsers version

Vue 版本

2.5.2

复现地址

预期

实际

feature request

使用地图定位插件Geolocation,返回经纬度一直在北美,无法获取准确的定位信息

plugin: [ { pName: "Geolocation", events: { init(o) { // o 是高德地图定位插件实例 o.getCurrentPosition((status, result) => { if (result && result.position) { self.lng = result.position.lng; self.lat = result.position.lat; self.center = [self.lng, self.lat]; self.loaded = true; self.$nextTick(); } }); } } }]

Tiramisu1 avatar Jun 23 '19 06:06 Tiramisu1

a[d].split is not a function 请问使用定位的时候有遇到这样的报错嘛?

natianxiayu avatar Oct 09 '20 06:10 natianxiayu

我也是 位置飘得很远 可能浏览器需要开个允许位置

sun-weitao avatar Apr 16 '21 13:04 sun-weitao

a[d].split is not a function 请问使用定位的时候有遇到这样的报错嘛?

@natianxiayu 我遇到这个错误,你的解决了吗?

cejpo001 avatar Jan 21 '22 01:01 cejpo001