如何将地图集成在扑动应用程序中,并获取标记纬度和经度哪个用户在地图上设置的用户?

发布于 2025-02-12 07:48:43 字数 112 浏览 0 评论 0原文

在我的应用程序中,我必须集成地图以获得标记纬度和经度。

在地图集成之后,用户可以在地图上设置一个标记,然后获得标记纬度和经度。

所以我如何做到这一点,请帮助我。

谢谢。

In my application i have to integrate map to get marker latitude and longitude.

after map integration user can set the one marker on the map then get the marker latitude and longitude.

so how i can do this, please help me.

thank you.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

寄离 2025-02-19 07:48:43

您必须使用 google_maps_flutter插件并购买Google Maps键。完成此操作后,添加GoogleMap小部件类似

GoogleMap(
   onCameraMove: (CameraPosition position) {
      lat = position.target.latitude.toString();
      lon = position.target.longitude.toString();
         setState(() {});
   }
);

You have to use the google_maps_flutter plugin and purchase the google maps key. Once that is done, add the GoogleMap widget like,

GoogleMap(
   onCameraMove: (CameraPosition position) {
      lat = position.target.latitude.toString();
      lon = position.target.longitude.toString();
         setState(() {});
   }
);
始终不够爱げ你 2025-02-19 07:48:43

您可以通过此网站本文将解决您的所有问题,将您整合到绘制在颤音中,获取当前位置的LNG和LNG,并在地图上以及标记位置上放置标记。还有更多。希望它对您有所帮助。

you can go through this website This article will solve your all problem Integrating a map in a flutter, getting lat and lng of the current location, and placing a marker on the map as well as marker location too. and many more. Hope it will helpful for you.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文