Skip to content

timer-cp/location_amap

Repository files navigation

amaplocation

高德地图Flutter插件包,使用Java和OC开发.

Getting Started

  • 1 设置各平台定位Key
Amaplocation.setApiKey("xxxx1", "xxx2");
Amaplocation amaplocation = Amaplocation();
// 定位参数:是否连续定位
AMapLocationOption option = AMapLocationOption(onceLocation: false);
// 监听定位回调
amaplocation.onLocationChanged().listen((event) {
   debugPrint('$event');
});
// 启动定位
amaplocation.startLocation();
// 设置定位参数
amaplocation.setLocationOption(option);

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published