Giter VIP home page Giter VIP logo

flutter_amap_plugin's Introduction

myamap 是基于高德地图封装的一个flutter插件(本人非andorid,ios专业开发人员,纯属打杂人员)

该demo实现了Flutter的基础布局,其中包括(通讯录,列表,搜索,登录等) 在线案例

Android 地图SDK

  • 显示地图
  • 绘制点标记

Android 定位SDK

  • 获取定位数据

可能会遇到的问题,入坑的看过来保证你能出坑!!!

  • 包引用(建议跟着高德地图官网一步一步的去做)
  • 关于引入so文件后出错,建议看错误提示,一般会提示couldn't find "libflutter.so"文件,建议看下这条错误的具体信息,删除对应的so文件即可
  • 切记这是重点在高德api文档中明确指示(需要onCreate重写)那么想办法把对应的参数传递过来即可
  • 数据传输格式(MessageCodec),建议多熟悉下Flutter提供的几种方式
  • 高德key错误导致无法鉴权,提示errorCode=7,errorMessage=key错误
    • 确保当前项目下的包名和高德配置的一致
    • 建议使用高德提供的sHa1方法在MainActivity下调用一次,看是否和高德配置的一致
    • 关于高德的配置文件一定是放在插件对应的AndroidManifest中
    • manifestPlaceholders 配置,提供动态配置

flutter_amap_plugin's People

Contributors

mymaizi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

logan2013

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.