Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

amap_flutter_map amap_flutter_location 这两个到底咋用 #30

Open
mybirthfather opened this issue Jul 31, 2021 · 0 comments
Open

amap_flutter_map amap_flutter_location 这两个到底咋用 #30

mybirthfather opened this issue Jul 31, 2021 · 0 comments

Comments

@mybirthfather
Copy link

我要用到地图定位功能, #使用2.0找不到Amapwidget类? amap_flutter_map: ^1.0.0 #上面是地图的 下面是定位的 amap_flutter_location: ^2.0.0 permission_handler: ^5.0.0
这是我依赖的东西,但是我发现 我不需要 AMapFlutterLocation _locationPlugin = new AMapFlutterLocation();
他的实例_locationPlugin.startlocation()就能定位?我stop也不管用。而且widget里setkey不管用?我尝试在native端设置key生效了,还有 这个///是否单次定位
locationOption.onceLocation = true; 我明明设置了true为什么还是会一直定位,这个方法_onLocationChanged会一直调用。
所以问一下到底是我使用的问题还是啥? 还有 高德开发者平台提供的demo 并没有定位代码里边代码没实现我下载看了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant