react-native 导入高德地图

  1. (建议用百度地图)
  2. 高德官网 : https://lbs.amap.com/
  3. GitHub地址: https://github.com/qiuxiang/react-native-amap3d
  4. 安装的时候遇到错误:一般是这个:Execution failed for task ':react-native-amap3d:compileDebugKotlin'  ,解决办法:https://github.com/25juan/react-native-amap3d/commit/30b92dad1ec6d59b82bbfcb0b12051c36ef8cfb0
  5. 获取appkey: 在终端:
    cd .android
    输入密码:一般是是android keytool
    -list -v -keystore debug.keystore

    5、运行代码,可以参考官方https://github.com/qiuxiang/react-native-amap3d/tree/master/example/examples,或者api

posted @ 2019-04-29 17:17  Mr.方  阅读(2859)  评论(0编辑  收藏  举报