Code Monkey home page Code Monkey logo

Comments (13)

AtoyGG avatar AtoyGG commented on May 28, 2024

@qiuxiang

from react-native-baidumap-sdk.

qiuxiang avatar qiuxiang commented on May 28, 2024

定位与逆地理编码没有任何关系

from react-native-baidumap-sdk.

AtoyGG avatar AtoyGG commented on May 28, 2024

这就好奇怪了,走定位了,但是逆地理编译出来的城市为空。

from react-native-baidumap-sdk.

qiuxiang avatar qiuxiang commented on May 28, 2024

我怎么觉得你的理解不对,哪里有逆地理编码?

from react-native-baidumap-sdk.

AtoyGG avatar AtoyGG commented on May 28, 2024

就是定位之后,走监听方法,项目需要当前位置信息,然后用了reverse方法

from react-native-baidumap-sdk.

qiuxiang avatar qiuxiang commented on May 28, 2024

有看过 example?

https://github.com/qiuxiang/react-native-baidumap-sdk/blob/master/example/examples/search/geocode-reverse.js

from react-native-baidumap-sdk.

AtoyGG avatar AtoyGG commented on May 28, 2024

看过啦,就是部分机型,定位后逆地理编码有问题。

from react-native-baidumap-sdk.

qiuxiang avatar qiuxiang commented on May 28, 2024

所以逆地理编码和定位有什么关系?两者是独立的模块呀

from react-native-baidumap-sdk.

AtoyGG avatar AtoyGG commented on May 28, 2024

这个我知道,逆地理编码不得依赖于定位监听
this.listener = Location.addLocationListener((location)这个方法嘛
我给reverse嵌套到这个方法里面了
有的机型就会出现城市为空的情况

from react-native-baidumap-sdk.

qiuxiang avatar qiuxiang commented on May 28, 2024

这个需要你自己写代码验证,如果确定问题的存在,我再看看什么问题

from react-native-baidumap-sdk.

AtoyGG avatar AtoyGG commented on May 28, 2024

我只是想跟你探讨下为啥有这个问题的存在,嘿嘿。98%以上机型是没问题的,有的就是不知道为啥会出现这样的问题。

from react-native-baidumap-sdk.

AtoyGG avatar AtoyGG commented on May 28, 2024

谢啦

from react-native-baidumap-sdk.

qiuxiang avatar qiuxiang commented on May 28, 2024

如果真的存在问题,那么大概是逆地理编码的问题,而失败其实是有信息的,只是我暂时忽略掉了

// TODO: provide error message

有能力的话可以自己调试下原生的代码

from react-native-baidumap-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.