react-native-baidumap-sdk icon indicating copy to clipboard operation
react-native-baidumap-sdk copied to clipboard

android 7 上定位的一个兼容性问题

Open yangbo5207 opened this issue 7 years ago • 3 comments

在android7上定位

Location.addLocationListener((location: any) => {
      this.setCurrentLat(location.latitude);
      this.setCurrentLng(location.longitude);
    });

获取到的结果如下:

accuracy: 0
altitude:5e-324
coordinateType: "bd09ll"
direction: -1
latitude:5e-324
locationType: 62
longitude:5e-324
speed: 0
timestamp: 1536309879

5e-324这个结果不是正确的经纬度。

yangbo5207 avatar Sep 07 '18 08:09 yangbo5207

要看 logcat

qiuxiang avatar Sep 07 '18 10:09 qiuxiang

我的手机就是 android 7,但并没有定位的问题

qiuxiang avatar Sep 19 '18 06:09 qiuxiang

我的小米6X也出现了这个问题: Android 8.1.0 ios上定位正常

wowge avatar Oct 20 '18 02:10 wowge