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

    五、運行代碼,能夠參考官方https://github.com/qiuxiang/react-native-amap3d/tree/master/example/examples,或者apireact

相關文章
相關標籤/搜索