如何通过长按自定义活动来查看地图位置信息?

发布于 2024-09-12 11:13:07 字数 213 浏览 2 评论 0原文

我有一个扩展 MapActivty 的活动,它呈现一个标记。我希望地图能够像本机地图应用程序一样处理长按,查找地理点的物理地址,显示地址,然后允许我按包含地址的标题以查看更多详细信息,例如行车路线,什么是附近。

这是否可能,或者该功能是否嵌入到本机地图应用程序中?

顺便说一句:因为我需要自定义选项菜单,所以我无法使用 geo:0,0?q=address 字符串隐式启动地图活动。

I have an activity that extends MapActivty that renders out a marker. I would like the map to handle long clicks the same way the native Maps app does in finding the physical address of the geo point, displaying the address, then allow me to press the caption containing the address to view more details ie driving directions, what's nearby.

Is this possible or is the functionality embedded into the native Maps app?

BTW: because I need a custom options menu I am unable to implicitly launch the map activity with a geo:0,0?q=address string.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文